plateform
stringclasses
1 value
repo_name
stringlengths
13
113
name
stringlengths
3
74
ext
stringclasses
1 value
path
stringlengths
12
229
size
int64
23
843k
source_encoding
stringclasses
9 values
md5
stringlengths
32
32
text
stringlengths
23
843k
github
lcnhappe/happe-master
ft_platform_supports.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/ft_platform_supports.m
9,557
utf_8
eb0e55d84d57e6873cce8df6cad90d96
function tf = ft_platform_supports(what,varargin) % FT_PLATFORM_SUPPORTS returns a boolean indicating whether the current platform % supports a specific capability % % Usage: % tf = ft_platform_supports(what) % tf = ft_platform_supports('matlabversion', min_version, max_version) % % The following values are allowe...
github
lcnhappe/happe-master
ft_warning.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/ft_warning.m
7,789
utf_8
d832a7ad5e2f9bb42995e6e5d4caa198
function [ws, warned] = ft_warning(varargin) % FT_WARNING will throw a warning for every unique point in the % stacktrace only, e.g. in a for-loop a warning is thrown only once. % % Use as one of the following % ft_warning(string) % ft_warning(id, string) % Alternatively, you can use ft_warning using a timeout % ...
github
lcnhappe/happe-master
ft_hastoolbox.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/ft_hastoolbox.m
24,831
utf_8
43bae19e25ce108f013f1c401e497630
function [status] = ft_hastoolbox(toolbox, autoadd, silent) % FT_HASTOOLBOX tests whether an external toolbox is installed. Optionally % it will try to determine the path to the toolbox and install it % automatically. % % Use as % [status] = ft_hastoolbox(toolbox, autoadd, silent) % % autoadd = 0 means that it will ...
github
lcnhappe/happe-master
read_yokogawa_data_new.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_yokogawa_data_new.m
5,623
utf_8
521f307689398a9963b8d12d779650dd
function [dat] = read_yokogawa_data_new(filename, hdr, begsample, endsample, chanindx) % READ_YOKAGAWA_DATA_NEW reads continuous, epoched or averaged MEG data % that has been generated by the Yokogawa MEG system and software % and allows that data to be used in combination with FieldTrip. % % Use as % [dat] = read_y...
github
lcnhappe/happe-master
read_plexon_nex.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_plexon_nex.m
7,574
utf_8
0034c1c75c81e41e90e48c678ed2ca9e
function [varargout] = read_plexon_nex(filename, varargin) % READ_PLEXON_NEX reads header or data from a Plexon *.nex file, which % is a file containing action-potential (spike) timestamps and waveforms % (spike channels), event timestamps (event channels), and continuous % variable data (continuous A/D channels). % %...
github
lcnhappe/happe-master
read_bti_m4d.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_bti_m4d.m
5,780
utf_8
744eebbd1eba1a856943c7ce24600bc4
function [msi] = read_bti_m4d(filename) % READ_BTI_M4D % % Use as % msi = read_bti_m4d(filename) % Copyright (C) 2007, Robert Oostenveld % % This file is part of FieldTrip, see http://www.fieldtriptoolbox.org % for the documentation and details. % % FieldTrip is free software: you can redistribute it and/or modi...
github
lcnhappe/happe-master
read_asa.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_asa.m
3,803
utf_8
290f06e1b51f627f99d257a5f1b49465
function [val] = read_asa(filename, elem, format, number, token) % READ_ASA reads a specified element from an ASA file % % val = read_asa(filename, element, type, number) % % where the element is a string such as % NumberSlices % NumberPositions % Rows % Columns % etc. % % and format specifies the datatype a...
github
lcnhappe/happe-master
ft_checkdata.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/ft_checkdata.m
57,523
utf_8
361ae795581b786433b88af3f624763d
function [data] = ft_checkdata(data, varargin) % FT_CHECKDATA checks the input data of the main FieldTrip functions, e.g. whether % the type of data strucure corresponds with the required data. If neccessary % and possible, this function will adjust the data structure to the input % requirements (e.g. change dimord, a...
github
lcnhappe/happe-master
read_yokogawa_data.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_yokogawa_data.m
10,974
utf_8
493fda2552516eab52e525c3387a7397
function [dat] = read_yokogawa_data(filename, hdr, begsample, endsample, chanindx) % READ_YOKAGAWA_DATA reads continuous, epoched or averaged MEG data % that has been generated by the Yokogawa MEG system and software % and allows that data to be used in combination with FieldTrip. % % Use as % [dat] = read_yokogawa_...
github
lcnhappe/happe-master
decode_fif.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/decode_fif.m
5,978
utf_8
d33206202f4aa5a18ba3ada03de48664
function [info] = decode_fif(orig) % DECODE_FIF is a helper function for real-time processing of Neuromag data. This % function is used to decode the content of the optional neuromag_fif chunk(s). % % See also DECODE_RES4, DECODE_NIFTI1, SAP2MATLAB % Copyright (C) 2013 Arjen Stolk & Robert Oostenveld % % This file is...
github
lcnhappe/happe-master
read_biff.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_biff.m
5,799
utf_8
78a82ce91f8383fd0f478b921280d6bb
function [this] = read_biff(filename, opt) % READ_BIFF reads data and header information from a BIFF file % % This is a attemt for a reference implementation to read the BIFF % file format as defined by the Clinical Neurophysiology department of % the University Medical Centre, Nijmegen. % % read all data and inform...
github
lcnhappe/happe-master
read_eeglabheader.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_eeglabheader.m
2,267
utf_8
f76d1bbb9aa657b05643502ef19fdb10
% read_eeglabheader() - import EEGLAB dataset files % % Usage: % >> header = read_eeglabheader(filename); % % Inputs: % filename - [string] file name % % Outputs: % header - FILEIO toolbox type structure % % Author: Arnaud Delorme, SCCN, INC, UCSD, 2008- %1234567890123456789012345678901234567890123456789012345...
github
lcnhappe/happe-master
read_ctf_svl.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_ctf_svl.m
3,812
utf_8
d3442d0a013cf5e0a8d4277d99e45206
% [data, hdr] = opensvl(filename) % % Reads a CTF SAM (.svl) file. function [data, hdr] = read_ctf_svl(filename) fid = fopen(filename, 'rb', 'ieee-be', 'ISO-8859-1'); if fid <= 0 error('Could not open SAM file: %s\n', filename); end % --------------------------------------------------------------...
github
lcnhappe/happe-master
read_erplabevent.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_erplabevent.m
1,786
utf_8
40ece49ff6bd2afd6024b46f210e65fa
% read_erplabevent() - import ERPLAB dataset events % % Usage: % >> event = read_erplabevent(filename, ...); % % Inputs: % filename - [string] file name % % Optional inputs: % 'header' - FILEIO structure header % % Outputs: % event - FILEIO toolbox event structure % % Modified from read_eeglabevent %12...
github
lcnhappe/happe-master
read_yokogawa_header_new.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_yokogawa_header_new.m
8,887
utf_8
70f6185e29007e7790efc5a8cb91bf23
function hdr = read_yokogawa_header_new(filename) % READ_YOKOGAWA_HEADER_NEW reads the header information from continuous, % epoched or averaged MEG data that has been generated by the Yokogawa % MEG system and software and allows that data to be used in combination % with FieldTrip. % % Use as % [hdr] = read_yokogaw...
github
lcnhappe/happe-master
ft_datatype_raw.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/ft_datatype_raw.m
11,070
utf_8
aff8ada66bf72bd5975e10ea4d2a3648
function [data] = ft_datatype_raw(data, varargin) % FT_DATATYPE_RAW describes the FieldTrip MATLAB structure for raw data % % The raw datatype represents sensor-level time-domain data typically % obtained after calling FT_DEFINETRIAL and FT_PREPROCESSING. It contains % one or multiple segments of data, each represente...
github
lcnhappe/happe-master
getdimsiz.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/getdimsiz.m
2,235
utf_8
340d495a654f2f6752aa1af7ac915390
function dimsiz = getdimsiz(data, field) % GETDIMSIZ % % Use as % dimsiz = getdimsiz(data, field) % % If the length of the vector that is returned is smaller than the % number of dimensions that you would expect from GETDIMORD, you % should assume that it has trailing singleton dimensions. % % Example use % dimord...
github
lcnhappe/happe-master
read_yokogawa_header.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_yokogawa_header.m
8,273
utf_8
ce0d6dbecc09597da7bbb311519c6c84
function hdr = read_yokogawa_header(filename) % READ_YOKOGAWA_HEADER reads the header information from continuous, % epoched or averaged MEG data that has been generated by the Yokogawa % MEG system and software and allows that data to be used in combination % with FieldTrip. % % Use as % [hdr] = read_yokogawa_heade...
github
lcnhappe/happe-master
encode_nifti1.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/encode_nifti1.m
4,870
utf_8
9cf92a03587c511a5cec2c8c76a3c2c3
function blob = encode_nifti1(H) %function blob = encode_nifti1(H) % % Encodes a NIFTI-1 header (=> raw 348 bytes (uint8)) from a Matlab structure % that matches the C struct defined in nifti1.h. % % WARNING: This function currently ignores endianness !!! % (C) 2010 S.Klanke blob = uint8(zeros(1,348)); if ~isstruct(...
github
lcnhappe/happe-master
read_nervus_header.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_nervus_header.m
30,014
utf_8
a7e8259eae22c5af14fb48467f95f2b7
function output = read_nervus_header(filename) % read_nervus_header Returns header information from Nicolet file. % % FILENAME is the file name of a file in the Natus/Nicolet/Nervus(TM) % format (originally designed by Taugagreining HF in Iceland) % % Based on ieeg-portal/Nicolet-Reader % at https://github.com...
github
lcnhappe/happe-master
avw_hdr_read.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/avw_hdr_read.m
16,654
utf_8
f63f3dbd244a89c6108eff59453680c3
function [ avw, machine ] = avw_hdr_read(fileprefix, machine, verbose) % avw_hdr_read - read Analyze format data header (*.hdr) % % [ avw, machine ] = avw_hdr_read(fileprefix, [machine], [verbose]) % % fileprefix - string filename (without .hdr); the file name % can be given as a full path or relative to ...
github
lcnhappe/happe-master
read_stl.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_stl.m
4,432
utf_8
6aec08043b6655fd9efe5194e20bf28f
function [pnt, tri, nrm] = read_stl(filename) % READ_STL reads a triangulation from an ascii or binary *.stl file, which % is a file format native to the stereolithography CAD software created by % 3D Systems. % % Use as % [pnt, tri, nrm] = read_stl(filename) % % The format is described at http://en.wikipedia.org/wi...
github
lcnhappe/happe-master
read_itab_mhd.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_itab_mhd.m
12,518
utf_8
d0ebd0b4e1de627d76cb523010d16ec7
function mhd = read_itab_mhd(filename) fid = fopen(filename, 'rb'); % Name of structure mhd.stname = fread(fid, [1 10], 'uint8=>char'); % Header identifier (VP_BIOMAG) mhd.stver = fread(fid, [1 8], 'uint8=>char'); % Header version mhd.stendian = fread(fid, [1 4], 'uint8=>char'); % ...
github
lcnhappe/happe-master
read_plexon_plx.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_plexon_plx.m
20,283
utf_8
ec115cb91003e60359655fdd73fdfdb6
function [varargout] = read_plexon_plx(filename, varargin) % READ_PLEXON_PLX reads header or data from a Plexon *.plx file, which % is a file containing action-potential (spike) timestamps and waveforms % (spike channels), event timestamps (event channels), and continuous % variable data (continuous A/D channels). % %...
github
lcnhappe/happe-master
read_neurosim_evolution.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_neurosim_evolution.m
4,493
utf_8
611253a932a6acc90c0b61a442dc58a5
function [hdr, dat] = read_neurosim_evolution(filename, varargin) % READ_NEUROSIM_EVOLUTION reads the "evolution" file that is written % by Jan van der Eerden's NeuroSim software. When a directory is used % as input, the default filename 'evolution' is read. % % Use as % [hdr, dat] = read_neurosim_evolution(filename...
github
lcnhappe/happe-master
read_eeglabevent.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_eeglabevent.m
3,698
utf_8
d48c0efc8368b120e96562164a153a88
% read_eeglabevent() - import EEGLAB dataset events % % Usage: % >> event = read_eeglabevent(filename, ...); % % Inputs: % filename - [string] file name % % Optional inputs: % 'header' - FILEIO structure header % % Outputs: % event - FILEIO toolbox event structure % % Author: Arnaud Delorme, SCCN, INC, ...
github
lcnhappe/happe-master
read_bti_ascii.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_bti_ascii.m
2,240
utf_8
560f3413b1fc96661f8ed42823efdc13
function [file] = read_bti_ascii(filename) % READ_BTI_ASCII reads general data from a BTI configuration file % % The file should be formatted like % Group: % item1 : value1a value1b value1c % item2 : value2a value2b value2c % item3 : value3a value3b value3c % item4 : value4a value4b value4c ...
github
lcnhappe/happe-master
openbdf.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/openbdf.m
6,812
utf_8
cb49358a2a955b165a5c50127c25e3d8
% openbdf() - Opens an BDF File (European Data Format for Biosignals) in MATLAB (R) % % Usage: % >> EDF=openedf(FILENAME) % % Note: About EDF -> www.biosemi.com/faq/file_format.htm % % Author: Alois Schloegl, 5.Nov.1998 % % See also: readedf() % Copyright (C) 1997-1998 by Alois Schloegl % a.schloegl@ieee.org % ...
github
lcnhappe/happe-master
ft_trialfun_general.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/trialfun/ft_trialfun_general.m
13,804
utf_8
24b04b8f0e079fd37494db20f8d6a99a
function [trl, event] = ft_trialfun_general(cfg) % FT_TRIALFUN_GENERAL determines trials/segments in the data that are % interesting for analysis, using the general event structure returned % by read_event. This function is independent of the dataformat % % The trialdef structure can contain the following specificatio...
github
lcnhappe/happe-master
ft_trialfun_realtime.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/trialfun/ft_trialfun_realtime.m
4,420
utf_8
d7133e3da082881a031513a257c0a2d9
function trl = ft_trialfun_realtime(cfg) % FT_TRIALFUN_REALTIME can be used to segment a continuous stream of % data in real-time. Trials are defined as [begsample endsample offset % condition] % % The configuration structure can contain the following specifications % cfg.minsample = the last sample number that was...
github
lcnhappe/happe-master
select_channel_list.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/trialfun/private/select_channel_list.m
5,924
utf_8
94982b0a4829981930c1c446e459ca7c
function [select] = select_channel_list(label, select, titlestr) % SELECT_CHANNEL_LIST presents a dialog for selecting multiple elements % from a cell array with strings, such as the labels of EEG channels. % The dialog presents two columns with an add and remove mechanism. % % select = select_channel_list(label, ini...
github
lcnhappe/happe-master
ft_headmodel_fns.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/forward/ft_headmodel_fns.m
5,517
utf_8
f2babb12e0dbf26d42ff2aa1a9791792
function headmodel = ft_headmodel_fns(seg, varargin) % FT_HEADMODEL_FNS creates the volume conduction structure to be used % in the FNS forward solver. % % Use as % headmodel = ft_headmodel_fns(seg, ...) % % Optional input arguments should be specified in key-value pairs and % can include % tissuecond = matr...
github
lcnhappe/happe-master
ft_convert_units.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/forward/ft_convert_units.m
10,207
utf_8
d3c04f1222517baf2f069d68e3dd6abe
function [obj] = ft_convert_units(obj, target, varargin) % FT_CONVERT_UNITS changes the geometrical dimension to the specified SI unit. % The units of the input object is determined from the structure field % object.unit, or is estimated based on the spatial extend of the structure, % e.g. a volume conduction model of...
github
lcnhappe/happe-master
ft_apply_montage.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/forward/ft_apply_montage.m
21,632
utf_8
44431986d20b2a03b833ec06858af91d
function [input] = ft_apply_montage(input, montage, varargin) % FT_APPLY_MONTAGE changes the montage of an electrode or gradiometer array. A % montage can be used for EEG rereferencing, MEG synthetic gradients, MEG % planar gradients or unmixing using ICA. This function applies the montage % to the input EEG or MEG se...
github
lcnhappe/happe-master
ft_headmodel_slab.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/forward/ft_headmodel_slab.m
3,563
utf_8
a25dc7acd56e431b9a85280512392362
function headmodel = ft_headmodel_slab(mesh1, mesh2, Pc, varargin) % FT_HEADMODEL_SLAB creates an EEG volume conduction model that % is described with an infinite conductive slab. You can think % of this as two parallel planes containing a mass of conductive % material (e.g. water) and externally to them a non-conduct...
github
lcnhappe/happe-master
ft_prepare_vol_sens.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/forward/ft_prepare_vol_sens.m
26,259
utf_8
225596851f014058749908d3367e615b
function [headmodel, sens] = ft_prepare_vol_sens(headmodel, sens, varargin) % FT_PREPARE_VOL_SENS does some bookkeeping to ensure that the volume % conductor model and the sensor array are ready for subsequent forward % leadfield computations. It takes care of some pre-computations that can % be done efficiently prior...
github
lcnhappe/happe-master
ft_headmodel_halfspace.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/forward/ft_headmodel_halfspace.m
3,238
utf_8
1c182d8deabdfeefe195129d7faa2b2d
function headmodel = ft_headmodel_halfspace(mesh, Pc, varargin) % FT_HEADMODEL_HALFSPACE creates an EEG volume conduction model that % is described with an infinite conductive halfspace. You can think % of this as a plane with on one side a infinite mass of conductive % material (e.g. water) and on the other side non-...
github
lcnhappe/happe-master
ft_headmodel_dipoli.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/forward/ft_headmodel_dipoli.m
7,156
utf_8
aa51271ac3c67c39dcc78a6d6937d469
function headmodel = ft_headmodel_dipoli(mesh, varargin) % FT_HEADMODEL_DIPOLI creates a volume conduction model of the head % using the boundary element method (BEM) for EEG. This function takes % as input the triangulated surfaces that describe the boundaries and % returns as output a volume conduction model which c...
github
lcnhappe/happe-master
ft_headmodel_openmeeg.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/forward/ft_headmodel_openmeeg.m
6,801
utf_8
88866540a84637e828c25e8c1d20d1ed
function headmodel = ft_headmodel_openmeeg(mesh, varargin) % FT_HEADMODEL_OPENMEEG creates a volume conduction model of the % head using the boundary element method (BEM). This function takes % as input the triangulated surfaces that describe the boundaries and % returns as output a volume conduction model which can b...
github
lcnhappe/happe-master
ft_datatype_sens.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/forward/private/ft_datatype_sens.m
22,743
utf_8
fab01996ef9a98c643827fb2767fbaf3
function [sens] = ft_datatype_sens(sens, varargin) % FT_DATATYPE_SENS describes the FieldTrip structure that represents an EEG, ECoG, or % MEG sensor array. This structure is commonly called "elec" for EEG, "grad" for MEG, % "opto" for NIRS, or general "sens" for either one. % % For all sensor types a distinction shou...
github
lcnhappe/happe-master
pinvNx2.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/forward/private/pinvNx2.m
1,116
utf_8
a10c4b3cf66f4a8756fdb95d62b5e04a
function y = pinvNx2(x) % PINVNX2 computes a pseudo-inverse of the slices of an Nx2xM real-valued matrix. % Output has dimensionality 2xNxM. This implementation is generally faster % than calling pinv in a for-loop, once M > 2 siz = [size(x) 1]; xtx = zeros([2,2,siz(3:end)]); xtx(1,1,:,:) = sum(x(:,1,:,:).^2,1); xtx...
github
lcnhappe/happe-master
normals.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/forward/private/normals.m
2,528
utf_8
96701c7ebda7e6efca8095b3adb6081c
function [nrm] = normals(pnt, tri, opt) % NORMALS compute the surface normals of a triangular mesh % for each triangle or for each vertex % % [nrm] = normals(pnt, tri, opt) % where opt is either 'vertex' or 'triangle' % Copyright (C) 2002-2007, Robert Oostenveld % % This file is part of FieldTrip, see http://www.fiel...
github
lcnhappe/happe-master
meg_ini.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/forward/private/meg_ini.m
5,362
utf_8
57aac4444f8347f1d9de9ff52daf0147
function forwpar=meg_ini(vc,center,order,sens,refs,gradlocs,weights) % initializes MEG-forward calculation % usage: forwpar=meg_ini(vc,center,order,sens,refs,gradlocs,weights) % % input: % vc: Nx6 matrix; N is the number of surface points % the first three numbers in each row are the location % and the seco...
github
lcnhappe/happe-master
eeg_halfspace_monopole.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/forward/private/eeg_halfspace_monopole.m
3,463
utf_8
20c31956ac04fd0bf5615016a9aec23e
function [lf] = eeg_halfspace_monopole(rd, elc, vol) % EEG_HALFSPACE_MONOPOLE calculate the halfspace medium leadfield % on positions pnt for a monopole at position rd and conductivity cond % The halfspace solution requires a plane dividing a conductive zone of % conductivity cond, from a non coductive zone (cond = 0)...
github
lcnhappe/happe-master
eeg_halfspace_medium_leadfield.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/forward/private/eeg_halfspace_medium_leadfield.m
3,463
utf_8
b68f2792331216de0c239ced9734fe42
function [lf] = eeg_halfspace_medium_leadfield(rd, elc, vol) % HALFSPACE_MEDIUM_LEADFIELD calculate the halfspace medium leadfield % on positions pnt for a dipole at position rd and conductivity cond % The halfspace solution requires a plane dividing a conductive zone of % conductivity cond, from a non coductive zone ...
github
lcnhappe/happe-master
ft_warning.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/forward/private/ft_warning.m
7,789
utf_8
d832a7ad5e2f9bb42995e6e5d4caa198
function [ws, warned] = ft_warning(varargin) % FT_WARNING will throw a warning for every unique point in the % stacktrace only, e.g. in a for-loop a warning is thrown only once. % % Use as one of the following % ft_warning(string) % ft_warning(id, string) % Alternatively, you can use ft_warning using a timeout % ...
github
lcnhappe/happe-master
leadsphere_all.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/forward/private/leadsphere_all.m
2,291
utf_8
3d513e7f5d8a9f4a12ced5392ee85220
function out=leadsphere_chans(xloc,sensorloc,sensorori) % usage: out=leadsphere_chans(xloc,sensorloc,sensorori) % Copyright (C) 2003, Guido Nolte % % This file is part of FieldTrip, see http://www.fieldtriptoolbox.org % for the documentation and details. % % FieldTrip is free software: you can redistribute it and/o...
github
lcnhappe/happe-master
ft_hastoolbox.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/forward/private/ft_hastoolbox.m
24,831
utf_8
43bae19e25ce108f013f1c401e497630
function [status] = ft_hastoolbox(toolbox, autoadd, silent) % FT_HASTOOLBOX tests whether an external toolbox is installed. Optionally % it will try to determine the path to the toolbox and install it % automatically. % % Use as % [status] = ft_hastoolbox(toolbox, autoadd, silent) % % autoadd = 0 means that it will ...
github
lcnhappe/happe-master
mesh2edge.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/forward/private/mesh2edge.m
3,713
utf_8
410baaa2ca114acab82443de9a844a68
function [newbnd] = mesh2edge(bnd) % MESH2EDGE finds the edge lines from a triangulated mesh or the edge % surfaces from a tetrahedral or hexahedral mesh. An edge is defined as an % element that does not border any other element. This also implies that a % closed triangulated surface has no edges. % % Use as % [edge...
github
lcnhappe/happe-master
project_elec.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/forward/private/project_elec.m
3,791
utf_8
61bc3f095e4ced1311048c06823bb037
function [el, prj] = project_elec(elc, pnt, tri) % PROJECT_ELEC projects electrodes on a triangulated surface % and returns triangle index, la/mu parameters and distance % % Use as % [el, prj] = project_elec(elc, pnt, tri) % which returns % el = Nx4 matrix with [tri, la, mu, dist] for each electrode % prj ...
github
lcnhappe/happe-master
eeg_slab_monopole.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/forward/private/eeg_slab_monopole.m
4,375
utf_8
1ffef5225bbeaf47b2a91906c7df7b3a
function [lf] = eeg_slab_monopole(rd, elc, vol) % EEG_SLAB_MONOPOLE calculate the strip medium leadfield % on positions pnt for a monopole at position rd and conductivity cond % The halfspace solution requires a plane dividing a conductive zone of % conductivity cond, from a non coductive zone (cond = 0) % % [l...
github
lcnhappe/happe-master
eeg_leadfield1.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/forward/private/eeg_leadfield1.m
3,868
utf_8
84a91d4f1daf6dc32450398058ef4c3c
function lf = eeg_leadfield1(R, elc, vol) % EEG_LEADFIELD1 electric leadfield for a dipole in a single sphere % % [lf] = eeg_leadfield1(R, elc, vol) % % with input arguments % R position dipole (vector of length 3) % elc position electrodes % and vol being a structure with the elements % vol.r ...
github
lcnhappe/happe-master
meg_forward.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/forward/private/meg_forward.m
3,954
utf_8
e674beba8b799e44fadd7b5e0ee82b9a
function field=meg_forward(dip_par,forwpar) % calculates the magnetic field of n dipoles % in a realistic volume conductor % usage: field=meg_forward(dip_par,forwpar) % % input: % dip_par nx6 matrix where each row contains location (first 3 numbers) % and moment (second 3 numbers) of a dipole % forwpar structur...
github
lcnhappe/happe-master
leadfield_openmeeg.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/forward/private/leadfield_openmeeg.m
16,073
utf_8
59380282979799a30ccf58093f1bc3d8
function [lp, voxels_in] = leadfield_openmeeg ( voxels, vol, sens, varargin ) % FT_OM_COMPUTE_LEAD uses OpenMEEG to compute the lead fields / potentials % using the boundary element method (BEM). % The inputs are as follows: % voxels = an [Nx3] array of voxel locations. % vol = the volume structure co...
github
lcnhappe/happe-master
firwsord.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/preproc/private/firwsord.m
2,973
utf_8
a2d4fcfe22b1570834add343cd9b6bc0
% firwsord() - Estimate windowed sinc FIR filter order depending on % window type and requested transition band width % % Usage: % >> [m, dev] = firwsord(wtype, fs, df); % >> m = firwsord('kaiser', fs, df, dev); % % Inputs: % wtype - char array window type. 'rectangular', 'bartlett', 'hann', % ...
github
lcnhappe/happe-master
minphaserceps.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/preproc/private/minphaserceps.m
2,151
utf_8
57715581f54dbcadc7e0a0bda70ce5c9
% rcepsminphase() - Convert FIR filter coefficient to minimum phase % % Usage: % >> b = minphaserceps(b); % % Inputs: % b - FIR filter coefficients % % Outputs: % bMinPhase - minimum phase FIR filter coefficients % % Author: Andreas Widmann, University of Leipzig, 2013 % % References: % [1] Smith III, O. J. (20...
github
lcnhappe/happe-master
firws.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/preproc/private/firws.m
3,217
utf_8
c683c72e05eaadd0e53428ab481f880a
%firws() - Designs windowed sinc type I linear phase FIR filter % % Usage: % >> b = firws(m, f); % >> b = firws(m, f, w); % >> b = firws(m, f, t); % >> b = firws(m, f, t, w); % % Inputs: % m - filter order (mandatory even) % f - vector or scalar of cutoff frequency/ies (-6 dB; % pi rad / sample) % % O...
github
lcnhappe/happe-master
kaiserbeta.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/preproc/private/kaiserbeta.m
1,569
utf_8
18e3b152604b8dd8d1bb7052e720f3a6
% kaiserbeta() - Estimate Kaiser window beta % % Usage: % >> beta = pop_kaiserbeta(dev); % % Inputs: % dev - scalar maximum passband deviation/ripple % % Output: % beta - scalar Kaiser window beta % % References: % [1] Proakis, J. G., & Manolakis, D. G. (1996). Digital Signal % Processing: Prin...
github
lcnhappe/happe-master
invfirwsord.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/preproc/private/invfirwsord.m
2,900
utf_8
1ede4ed306eda03dcaa8daffa9426079
% invfirwsord() - Estimate windowed sinc FIR filter transition band width % depending on filter order and window type % % Usage: % >> [df, dev] = invfirwsord(wtype, fs, m); % >> df = invfirwsord('kaiser', fs, m, dev); % % Inputs: % wtype - char array window type. 'rectangular', 'bartlett', 'hann'...
github
lcnhappe/happe-master
windows.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/preproc/private/windows.m
3,152
utf_8
13d9e2d7d608f7550b77f84278c89184
% windows() - Symmetric window functions % % Usage: % >> h = windows(t, m); % >> h = windows(t, m, a); % % Inputs: % t - char array 'rectangular', 'bartlett', 'hann', 'hamming', % 'blackman', 'blackmanharris', 'kaiser', or 'tukey' % m - scalar window length % % Optional inputs: % a - scalar or vector wi...
github
lcnhappe/happe-master
ft_warning.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/preproc/private/ft_warning.m
7,789
utf_8
d832a7ad5e2f9bb42995e6e5d4caa198
function [ws, warned] = ft_warning(varargin) % FT_WARNING will throw a warning for every unique point in the % stacktrace only, e.g. in a for-loop a warning is thrown only once. % % Use as one of the following % ft_warning(string) % ft_warning(id, string) % Alternatively, you can use ft_warning using a timeout % ...
github
lcnhappe/happe-master
fir_filterdcpadded.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/preproc/private/fir_filterdcpadded.m
2,934
utf_8
a5287ea8667b904280539687a04797ca
% fir_filterdcpadded() - Pad data with DC constant and filter % % Usage: % >> data = fir_filterdcpadded(b, a, data, causal); % % Inputs: % b - vector of filter coefficients % a - 1 % data - raw data (times x chans) % causal - boolean perform causal filtering {default 0}...
github
lcnhappe/happe-master
plotfresp.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/preproc/private/plotfresp.m
5,213
utf_8
02ff3bdc63f5c3410460734e2a7378fe
% plotfresp() - Plot a filter's impulse, step, magnitude, and phase response % % Usage: % >> plotfresp(b, a, nfft, fs, causal); % % Inputs: % b - vector numerator coefficients % % Optional inputs: % a - scalar or vector denominator coefficients (IIR support is % experimental!) {default 1} % nf...
github
lcnhappe/happe-master
qsublist.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/qsub/qsublist.m
8,076
utf_8
d9f7d454a9f8d6bc5991aa409e239c11
function retval = qsublist(cmd, jobid, pbsid) % QSUBLIST is a helper function that is used to keep track of all the jobs in a % submitted batch. specifically, it is used to maintain the mapping between the % job identifier in the batch queueing system and MATLAB. % % Use as % qsublist('list') % qsublist('killall')...
github
lcnhappe/happe-master
qsubcellfun.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/qsub/qsubcellfun.m
19,264
utf_8
ed7719203341c9d8668d006d2ffc44bb
function varargout = qsubcellfun(fname, varargin) % QSUBCELLFUN applies a function to each element of a cell-array. The % function execution is done in parallel using the Torque, SGE, PBS or % SLURM batch queue system. % % Use as % argout = qsubcellfun(fname, x1, x2, ...) % % This function has a number of optional a...
github
lcnhappe/happe-master
qsublisten.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/qsub/qsublisten.m
4,326
utf_8
6ac189cba48025bdbd36f682f9b258cc
function num = qsublisten(callback, varargin) % QSUBLISTEN checks whether jobs, submitted by qsubfeval, have been % completed. Whenever a job returns, it executes the provided callback function % (should be a function handle), with the job ID as an input argument. Results % can then be retrieved by calling QSUBGET. ...
github
lcnhappe/happe-master
ft_platform_supports.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/qsub/private/ft_platform_supports.m
9,557
utf_8
eb0e55d84d57e6873cce8df6cad90d96
function tf = ft_platform_supports(what,varargin) % FT_PLATFORM_SUPPORTS returns a boolean indicating whether the current platform % supports a specific capability % % Usage: % tf = ft_platform_supports(what) % tf = ft_platform_supports('matlabversion', min_version, max_version) % % The following values are allowe...
github
lcnhappe/happe-master
ft_warning.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/qsub/private/ft_warning.m
7,789
utf_8
d832a7ad5e2f9bb42995e6e5d4caa198
function [ws, warned] = ft_warning(varargin) % FT_WARNING will throw a warning for every unique point in the % stacktrace only, e.g. in a for-loop a warning is thrown only once. % % Use as one of the following % ft_warning(string) % ft_warning(id, string) % Alternatively, you can use ft_warning using a timeout % ...
github
lcnhappe/happe-master
ft_checkopt.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/qsub/private/ft_checkopt.m
5,085
utf_8
c8bce4359cc4a8be5591788b5984166d
function opt = ft_checkopt(opt, key, allowedtype, allowedval) % FT_CHECKOPT does a validity test on the types and values of a configuration % structure or cell-array with key-value pairs. % % Use as % opt = ft_checkopt(opt, key) % opt = ft_checkopt(opt, key, allowedtype) % opt = ft_checkopt(opt, key, allowedtype...
github
lcnhappe/happe-master
ft_statfun_roc.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/statfun/ft_statfun_roc.m
5,415
utf_8
a8e88fc1a733545abfe4d0608e309d53
function [s, cfg] = ft_statfun_roc(cfg, dat, design) % FT_STATFUN_ROC computes the area under the curve (AUC) of the % Receiver Operator Characteristic (ROC). This is a measure of the % separability of the data divided over two conditions. The AUC can % be used to test statistical significance of being able to predict...
github
lcnhappe/happe-master
ft_warning.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/statfun/private/ft_warning.m
7,789
utf_8
d832a7ad5e2f9bb42995e6e5d4caa198
function [ws, warned] = ft_warning(varargin) % FT_WARNING will throw a warning for every unique point in the % stacktrace only, e.g. in a for-loop a warning is thrown only once. % % Use as one of the following % ft_warning(string) % ft_warning(id, string) % Alternatively, you can use ft_warning using a timeout % ...
github
lcnhappe/happe-master
ft_realtime_ouunpod.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/realtime/online_eeg/ft_realtime_ouunpod.m
20,299
utf_8
e7df0f8c5ebb142a8a4f339bb345f448
function ft_realtime_ouunpod(cfg) % FT_REALTIME_OUUNPOD is an example realtime application for online power % estimation and visualisation. It is designed for use with the OuUnPod, an % OpenEEG based low cost EEG system with two channels, but in principle % should work for any EEG or MEG system. % % Use as % ft_real...
github
lcnhappe/happe-master
ft_realtime_oddball.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/realtime/online_eeg/ft_realtime_oddball.m
13,163
utf_8
d5a3400a1168a9e53bccbb79f889bebb
function ft_realtime_oddball(cfg) % FT_REALTIME_ODDBALL is an realtime application that computes an online % average for a standard and deviant condition. The ERPs/ERFs are plotted, % together with the difference as t-values. It should work both for EEG and % MEG, as long as there are two triggers present % % Use as %...
github
lcnhappe/happe-master
ft_omri_info_from_header.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/realtime/online_mri/ft_omri_info_from_header.m
4,361
utf_8
97589ff2ee8f9fa7ee376b4b628de647
function S = ft_omri_info_from_header(hdr) % function S = ft_omri_info_from_header(hdr) % % Convenience function to retrieve most important MR information % from a given header (H) as retrieved from a FieldTrip buffer. % Will look at both NIFTI-1 and SiemensAP fields, if present, and % give preference to SiemensAP inf...
github
lcnhappe/happe-master
encode_nifti1.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/realtime/online_mri/private/encode_nifti1.m
4,870
utf_8
9cf92a03587c511a5cec2c8c76a3c2c3
function blob = encode_nifti1(H) %function blob = encode_nifti1(H) % % Encodes a NIFTI-1 header (=> raw 348 bytes (uint8)) from a Matlab structure % that matches the C struct defined in nifti1.h. % % WARNING: This function currently ignores endianness !!! % (C) 2010 S.Klanke blob = uint8(zeros(1,348)); if ~isstruct(...
github
lcnhappe/happe-master
reslice_vol.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/realtime/online_mri/private/reslice_vol.m
942
utf_8
081ab7897d7a4e33ecb3ade31f6263c0
function [Va, Mask] = reslice_vol(Vo, M, interp) % function [Va, Mask] = reslice_vol(Vo, M, interp) % Ripped out of SPM 8 and modified (2010, S.Klanke) dim = size(Vo); wrap = [1;1;0]; d = [interp*[1;1;1] wrap]; [x1,x2] = ndgrid(1:dim(1), 1:dim(2)); C = spm_bsplinc(Vo, d); Va = zeros(dim); Mask = zeros(dim); for x3 ...
github
lcnhappe/happe-master
ft_realtime_signalviewer.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/realtime/example/ft_realtime_signalviewer.m
9,980
utf_8
80b047f2f1e4ef4fbb3c7f3a8124588a
function ft_realtime_signalviewer(cfg) % FT_REALTIME_SIGNALVIEWER is an example realtime application for online viewing of % the data. It should work both for EEG and MEG. % % Use as % ft_realtime_signalviewer(cfg) % with the following configuration options % cfg.blocksize = number, size of the blocks/chuncks tha...
github
lcnhappe/happe-master
ft_realtime_packettimer.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/realtime/example/ft_realtime_packettimer.m
2,522
utf_8
ce7334780040a70c9e396dd0e8aa858d
function ft_realtime_packettimer(cfg) % FT_REALTIME_PACKETTIMER can be used to time the rate at which data can be processed % % Use as % ft_realtime_packettimer(cfg) % with the following configuration options % cfg.bcifun = processing of the data (default = @bcifun_timer) % cfg.npackets = the number of packe...
github
lcnhappe/happe-master
ft_realtime_topography.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/realtime/example/ft_realtime_topography.m
7,588
utf_8
a80a1641c2aa67f4120d9f7bd114d8c8
function ft_realtime_topography(cfg) % FT_REALTIME_TOPOGRAPHY reads continuous data from a file or from a data stream, % estimates the power and plots the scalp topography in real time. % % Use as % ft_realtime_topography(cfg) % with the following configuration options % cfg.blocksize = number, size of ...
github
lcnhappe/happe-master
ft_realtime_heartbeatdetect.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/realtime/example/ft_realtime_heartbeatdetect.m
9,725
utf_8
a64cf7e75558cb8c89ea26c459849f8f
function ft_realtime_heartbeatdetect(cfg) % FT_REALTIME_HEARTBEATDETECT is an example realtime application for online % detection of heart beats. It should work both for EEG and MEG. % % Use as % ft_realtime_heartbeatdetect(cfg) % with the following configuration options % cfg.blocksize = number, size of the bloc...
github
lcnhappe/happe-master
ft_realtime_powerestimate.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/realtime/example/ft_realtime_powerestimate.m
6,443
utf_8
361c8a8f141a0cc16b24d8c40614a42f
function ft_realtime_powerestimate(cfg) % FT_REALTIME_POWERESTIMATE is an example realtime application for online % power estimation. It should work both for EEG and MEG. % % Use as % ft_realtime_powerestimate(cfg) % with the following configuration options % cfg.channel = cell-array, see FT_CHANNELSELECTION (d...
github
lcnhappe/happe-master
ft_realtime_average.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/realtime/example/ft_realtime_average.m
5,663
utf_8
b0174ada31b4f5780645667fbe5b9251
function ft_realtime_average(cfg) % FT_REALTIME_AVERAGE is an example realtime application for online % averaging of the data. It should work both for EEG and MEG. % % Use as % ft_realtime_average(cfg) % with the following configuration options % cfg.channel = cell-array, see FT_CHANNELSELECTION (default = 'all...
github
lcnhappe/happe-master
ft_realtime_selectiveaverage.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/realtime/example/ft_realtime_selectiveaverage.m
7,947
utf_8
2d90d2683d30fc029fd00490a76696c1
function ft_realtime_selectiveaverage(cfg) % FT_REALTIME_SELECTIVEAVERAGE is an example realtime application for online % averaging of the data. It should work both for EEG and MEG. % % Use as % ft_realtime_selectiveaverage(cfg) % with the following configuration options % cfg.channel = cell-array, see FT_CHANN...
github
lcnhappe/happe-master
encode_nifti1.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/realtime/example/private/encode_nifti1.m
4,870
utf_8
9cf92a03587c511a5cec2c8c76a3c2c3
function blob = encode_nifti1(H) %function blob = encode_nifti1(H) % % Encodes a NIFTI-1 header (=> raw 348 bytes (uint8)) from a Matlab structure % that matches the C struct defined in nifti1.h. % % WARNING: This function currently ignores endianness !!! % (C) 2010 S.Klanke blob = uint8(zeros(1,348)); if ~isstruct(...
github
lcnhappe/happe-master
ft_realtime_headlocalizer.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/realtime/online_meg/ft_realtime_headlocalizer.m
34,879
utf_8
da6be976bfcbd763152dc11de64b3c1b
function ft_realtime_headlocalizer(cfg) % FT_REALTIME_HEADLOCALIZER is a realtime application for online visualization of the % head position indicator (HPI) coils in CTF275 and Elekta/Neuromag systems. % % Repositioning within a recording session can be achieved by marking the HPI % coil positions at an arbitrary poi...
github
lcnhappe/happe-master
readBESAimage.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/besa/readBESAimage.m
8,358
utf_8
4969e3fff82f74a3094d9595d66499e3
function image = readBESAimage(filename) % readBESAimage reads information from exported BESA images (Beamformer, % LAURA, sLORETA, swLORETA, LORETA, sSLOFO, User-Defined image, surface % minimum norm, Probe scan, Sensitivity). The function poutput is a struct % with fields containing all relevant information from t...
github
lcnhappe/happe-master
load_audio0123.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/videomeg/load_audio0123.m
3,277
utf_8
010d2cece743343ca3b509e44403cb33
function [ts, ids, offset, data, srate, site_id, is_sender] = load_audio0123(filename) % Read an audio file from the disk. %-------------------------------------------------------------------------- % Copyright (C) 2015 BioMag Laboratory, Helsinki University Central Hospital % % This program is free software: ...
github
lcnhappe/happe-master
comp_tstamps.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/videomeg/comp_tstamps.m
3,190
utf_8
f9969e0dd7f6d27c544b26a34bf20649
function data_tstamps = comp_tstamps(inp, sfreq) % COMP_TSTAMPS - extract timestamps from a trigger channel % INP - vector of samples for the trigger channel % SFREQ - sampling frequency % Return the vector of the same length as INP, containing timestamps for % each entry of INP. For detecting timestamps use pa...
github
lcnhappe/happe-master
mff_micros2Sample.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/egi_mff/mff_micros2Sample.m
527
utf_8
97dfab73c9d72c1615c28404bc7ca63a
%% mff_micros2Sample.m % Matlab File % author Colin Davey % date 3/2/2012 % Copyright 2012, 2013 EGI. All rights reserved. % Support routine for MFF Matlab code. Not intended to be called directly. % % Converts from microseconds to samples, given the sampling rate. %% function [sampleNum, remainder] = mff_micros...
github
lcnhappe/happe-master
mff_valid.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/egi_mff/mff_valid.m
2,663
utf_8
04a88daab90374c3cfc10d82a25c9c9e
%% mff_valid.m % Matlab File % author Colin Davey % date 12/3/2013 % Copyright 2013 EGI. All rights reserved. % Support routine for MFF Matlab code. Not intended to be called directly. % % Tests whether a file is valid, and throws an exception if not. Gives an % informational warning if filename doesn't end in '...
github
lcnhappe/happe-master
read_mff_header.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/egi_mff/read_mff_header.m
2,673
utf_8
3709cd08e3c235fbeeed3cc7e8419f1e
%% read_mff_header.m % Matlab File % author Colin Davey % date 3/2/2012, 4/15/2014 % Copyright 2012, 2014 EGI. All rights reserved. % % Takes the path to the data and returns the header in the structure % described at http://www.fieldtriptoolbox.org/reference/ft_read_header. % % filePath ? The path to the .mff ...
github
lcnhappe/happe-master
write_mff_data.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/egi_mff/write_mff_data.m
4,329
utf_8
6446ec1b98cec6e10279f1c1891567ed
%% write_mff_data.m % Matlab File % author Colin Davey % date 3/2/2012, 4/15/2014 % Copyright 2012, 2014 EGI. All rights reserved. % % Writes channel data (newData) in newData to an MFF file. NewData is a 2-D % matrix of size Nchans*Nsamples as described at % http://www.fieldtriptoolbox.org/reference/ft_read_da...
github
lcnhappe/happe-master
read_mff_data.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/egi_mff/read_mff_data.m
8,057
utf_8
dec75b9fc9150ef62661f59c76e781b1
%% read_mff_data.m % Matlab File % author Colin Davey % date 3/2/2012, 4/15/2014 % Copyright 2012, 2014 EGI. All rights reserved. % % Takes the path to the data and returns the 2-D matrix of size % Nchans*Nsamples as described at % http://www.fieldtriptoolbox.org/reference/ft_read_data. % % filePath ? The pat...
github
lcnhappe/happe-master
write_mff_event.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/egi_mff/write_mff_event.m
6,173
utf_8
a2125898d8e7a7d9b5d0b39224e9575b
%% write_mff_event.m % Matlab File % author Colin Davey % date 3/2/2012, 4/15/2014 % Copyright 2012, 2014 EGI. All rights reserved. % % Writes an events structure (as described at % http://www.fieldtriptoolbox.org/reference/ft_read_event) to an event-track % file in an existing MFF file (filePath). % % filePa...
github
lcnhappe/happe-master
write_mff_history.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/egi_mff/write_mff_history.m
4,440
utf_8
c40dcab28c29f1f1502200d38126b463
%% write_mff_history.m % Matlab File % author Colin Davey % date 4/15/2014 % Copyright 2014 EGI. All rights reserved. % % This function adds an item to the list of history items. It is intended % to be run after running code that either a) creates a new mff file based % on an existing one, or b) modifies an exis...
github
lcnhappe/happe-master
read_mff_event.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/egi_mff/read_mff_event.m
8,001
utf_8
8f54b92417702a6bde1b09e9ea67c6a0
%% read_mff_event.m % Matlab File % author Colin Davey % date 3/2/2012, 4/15/2014 % Copyright 2012, 2014 EGI. All rights reserved. % % Takes the path to the data and returns the events in the structure % described at http://www.fieldtriptoolbox.org/reference/ft_read_event. % % filePath ? The path to the .mff fi...
github
lcnhappe/happe-master
efficiency_bin.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/bct/efficiency_bin.m
2,700
utf_8
276bfa775a0cb36ac38e13fcb06ff32a
function E=efficiency_bin(A,local) %EFFICIENCY_BIN Global efficiency, local efficiency. % % Eglob = efficiency_bin(A); % Eloc = efficiency_bin(A,1); % % The global efficiency is the average of inverse shortest path length, % and is inversely related to the characteristic path length. % % The local efficie...
github
lcnhappe/happe-master
reachdist.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/bct/reachdist.m
1,995
utf_8
fe609993c33b1602c328e2a662f2f8a5
function [R,D] = reachdist(CIJ) %REACHDIST Reachability and distance matrices % % [R,D] = reachdist(CIJ); % % The binary reachability matrix describes reachability between all pairs % of nodes. An entry (u,v)=1 means that there exists a path from node u % to node v; alternatively (u,v)=0. % % The distan...
github
lcnhappe/happe-master
consensus_und.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/bct/consensus_und.m
3,133
utf_8
2399e05c584d7327bb19ba25e2c89812
function ciu = consensus_und(d,tau,reps) %CONSENSUS consensus clustering % % CIU = CONSENSUS(D,TAU,REPS) seeks a consensus partition of the % agreement matrix D. The algorithm used here is almost identical to the % one introduced in Lancichinetti & Fortunato (2012): The agreement % matrix D is thresholded...
github
lcnhappe/happe-master
efficiency_wei.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/bct/efficiency_wei.m
4,166
utf_8
d7b86059eb2ec0a923ab289c876fd9b0
function E=efficiency_wei(W,local) %EFFICIENCY_WEI Global efficiency, local efficiency. % % Eglob = efficiency_wei(W); % Eloc = efficiency_wei(W,1); % % The global efficiency is the average of inverse shortest path length, % and is inversely related to the characteristic path length. % % The local efficie...