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
icassoEst.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/icasso/icassoEst.m
8,817
utf_8
adb9102f63b02f7a42b3da5bdcf803ae
function sR=icassoEst(mode,X,M,varargin) %function sR=icassoEst(mode,X,M,['FastICAparamName1',value1,'FastICAparamName2',value2,...]) % %PURPOSE % %To compute randomized ICA estimates M times from data X. Output of %this function (sR) is called 'Icasso result structure' (see %icassoStruct). sR keeps the on all the meth...
github
lcnhappe/happe-master
icassoStruct.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/icasso/icassoStruct.m
8,190
utf_8
d80e7670415d1867f114b16bebb620f6
function sR=icassoStruct(X) %function sR=icassoStruct([X]) % %PURPOSE % %To initiate an Icasso result data structure which is meant for %storing and keeping organized all data, parameters and results %when performing the Icasso procedure. % %EXAMPLE OF BASIC USAGE % % S=icassoStruct(X); % %creates an Icasso result st...
github
lcnhappe/happe-master
som_dendrogram.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/icasso/som_dendrogram.m
9,039
utf_8
43f32770e95d19d4a12855bd8bfb91f3
function [h,Coord,Color,height] = som_dendrogram(Z,varargin) %SOM_DENDROGRAM Visualize a dendrogram. % % [h,Coord,Color,height] = som_dendrogram(Z, [[argID,] value, ...]) % % Z = som_linkage(sM); % som_dendrogram(Z); % som_dendrogram(Z,sM); % som_dendrogram(Z,'coord',co); % % Input and output arguments ([]'s ...
github
lcnhappe/happe-master
corrw.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/icasso/corrw.m
1,654
utf_8
b24c05ddd84adfca75a0870878a9c0f7
function R=corrw(W,D) %function R=corrw(W,D) % %PURPOSE % %To compute mutual linear correlation coefficients between M %independent component estimates using the demixing matrix W and %the dewhitening matrix D of the original data. % % R=W*D*D'*W'; % %INPUT % % W (field W in Icasso struct: demixing matrices) % D (fi...
github
lcnhappe/happe-master
reducesim.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/icasso/reducesim.m
3,056
utf_8
d2d2a37c6d316586dbfc3da7760af840
function S=reducesim(S,minLimit,partition,scatter,scatterLimit) %function S=reducesim(S,minLimit) % or %function S=reducesim(S,minLimit,partition,scatter,scatterLimit) % %PURPOSE % %To reduce the number of lines that are drawn when the similarity %matrix is visualized. That is, to set similarities below certain %thres...
github
lcnhappe/happe-master
clusterhull.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/icasso/clusterhull.m
5,149
utf_8
49c19208dafd1008be107e012aa6f36e
function [h_marker,txtcoord]=clusterhull(mode,coord,partition,color) %function [h_marker,txtcoord]=clusterhull(mode,coord,partition,[color]) % %PURPOSE % %To draw a cluster visualization where the objects (represented by %points) belonging to the same cluster are presented by "cluster hulls", %polygons where the edge o...
github
lcnhappe/happe-master
vis_valuetype.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/icasso/vis_valuetype.m
7,502
utf_8
cb7a373fcda9120d69231b2748371740
function flag=vis_valuetype(value, valid, str); % VIS_VALUETYPE Used for type checks in SOM Toolbox visualization routines % % flag = vis_valuetype(value, valid, str) % % Input and output arguments: % value (varies) variable to be checked % valid (cell array) size 1xN, cells are strings or vectors (see below) ...
github
lcnhappe/happe-master
icassoGet.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/icasso/icassoGet.m
5,635
utf_8
9a56d24c879fa67d054651240e964543
function out=icassoGet(sR,field,index) %function out=icassoGet(sR,field,[index]) % %PURPOSE % %Auxiliary function for obtaining various information from the %Icasso result data structure. Using icassoGet, you can return %information related to original data, e.g.: data matrix, %(de)whitening matrix, total number of es...
github
lcnhappe/happe-master
spm_input.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/spm_input.m
89,257
utf_8
74a73562f0562998a037c0c5d7a512c7
function varargout = spm_input(varargin) % Comprehensive graphical and command line input function % FORMATs (given in Programmers Help) %_______________________________________________________________________ % % spm_input handles most forms of interactive user input for SPM. % (File selection is handled by spm_select...
github
lcnhappe/happe-master
spm_write_sn.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/spm_write_sn.m
20,195
utf_8
5bb2c4d938b07e035b1552465111fcf7
function VO = spm_write_sn(V,prm,flags,extras) % Write Out Warped Images. % FORMAT VO = spm_write_sn(V,matname,flags,msk) % V - Images to transform (filenames or volume structure). % matname - Transformation information (filename or structure). % flags - flags structure, with fields... % interp ...
github
lcnhappe/happe-master
spm_imatrix.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/spm_imatrix.m
1,499
utf_8
295b97abf7200bfd1af63c3e32aae6fd
function P = spm_imatrix(M) % returns the parameters for creating an affine transformation % FORMAT P = spm_imatrix(M) % M - Affine transformation matrix % P - Parameters (see spm_matrix for definitions) %___________________________________________________________________________ % Copyright (C) 2008 Wellcome...
github
lcnhappe/happe-master
spm_affreg.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/spm_affreg.m
20,248
utf_8
431e3807877742bdec89d07ce61e87f8
function [M,scal] = spm_affreg(VG,VF,flags,M,scal) % Affine registration using least squares. % FORMAT [M,scal] = spm_affreg(VG,VF,flags,M0,scal0) % % VG - Vector of template volumes. % VF - Source volume. % flags - a structure containing various options. The fields are: % WG - Weig...
github
lcnhappe/happe-master
spm_vol.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/spm_vol.m
5,475
utf_8
41a73601c2e44259fb8f1f4f3e870558
function V = spm_vol(P) % Get header information etc for images. % FORMAT V = spm_vol(P) % P - a matrix of filenames. % V - a vector of structures containing image volume information. % The elements of the structures are: % V.fname - the filename of the image. % V.dim - the x, y and z dimensions of the vo...
github
lcnhappe/happe-master
spm_jobman.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/spm_jobman.m
21,324
utf_8
970b3aa24a514dea929b79722697efdc
function varargout = spm_jobman(varargin) % Main interface for SPM Batch System % This function provides a compatibility layer between SPM and matlabbatch. % It translates spm_jobman callbacks into matlabbatch callbacks and allows % to edit and run SPM5 style batch jobs. % % FORMAT job_id = spm_jobman % job_id =...
github
lcnhappe/happe-master
spm_eeg_inv_vbecd_disp.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/spm_eeg_inv_vbecd_disp.m
22,913
UNKNOWN
d298cddd05dcda0aab1c23b6a9f98906
function spm_eeg_inv_vbecd_disp(action,varargin) % Display the dipoles as obtained from VB-ECD % % FORMAT spm_eeg_inv_vbecd_disp('Init',D) % Display the latest VB-ECD solution saved in the .inv{} field of the % data structure D. % % FORMAT spm_eeg_inv_vbecd_disp('Init',D, ind) % Display the ind^th .inv{} cell element, ...
github
lcnhappe/happe-master
spm_figure.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/spm_figure.m
32,150
utf_8
8f4bd924a038c03f7d509cc9e37b8395
function varargout=spm_figure(varargin) % Setup and callback functions for Graphics window % FORMAT varargout=spm_figure(varargin) % - An embedded callback, multi-function function % - For detailed programmers comments, see format specifications % in main body of code %______________________________...
github
lcnhappe/happe-master
spm_smooth.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/spm_smooth.m
3,654
utf_8
0f00684dc1b7cb99c88cd50e6a64a20a
function spm_smooth(P,Q,s,dtype) % 3 dimensional convolution of an image % FORMAT spm_smooth(P,Q,S,dtype) % P - image to be smoothed % Q - filename for smoothed image % S - [sx sy sz] Gaussian filter width {FWHM} in mm % dtype - datatype [default: 0 == same datatype as P] %__________________________________...
github
lcnhappe/happe-master
spm_smoothto8bit.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/spm_smoothto8bit.m
2,377
utf_8
89653bff7e0591df6fa676885a830a16
function VO = spm_smoothto8bit(V,fwhm) % 3 dimensional convolution of an image to 8bit data in memory % FORMAT VO = spm_smoothto8bit(V,fwhm) % V - mapped image to be smoothed % fwhm - FWHM of Guassian filter width in mm % VO - smoothed volume in a form that can be used by the % spm_*_vol.mex* functions....
github
lcnhappe/happe-master
spm_platform.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/spm_platform.m
8,498
utf_8
9af699511e4e0bff6555d7a1e3fe0a23
function varargout=spm_platform(varargin) % Platform specific configuration parameters for SPM % % FORMAT ans = spm_platform(arg) % arg - optional string argument, can be % - 'bigend' - return whether this architecture is bigendian % - 0 - is little endian % - 1 - ...
github
lcnhappe/happe-master
spm_preproc.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/spm_preproc.m
20,519
utf_8
c08f55c5a2eaeb3e30508750d366f52f
function results = spm_preproc(varargin) % Combined Segmentation and Spatial Normalisation % % FORMAT results = spm_preproc(V,opts) % V - image to work with % opts - options % opts.tpm - n tissue probability images for each class % opts.ngaus - number of Gaussians per class (n+1 classes) % opts.warpreg ...
github
lcnhappe/happe-master
spm_preproc_write.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/spm_preproc_write.m
8,906
utf_8
9312486f72c3a8971ab0c9e847c3a465
function spm_preproc_write(p,opts) % Write out VBM preprocessed data % FORMAT spm_preproc_write(p,opts) % p - results from spm_prep2sn % opts - writing options. A struct containing these fields: % biascor - write bias corrected image % GM - flags for which images should be written % WM ...
github
lcnhappe/happe-master
spm.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/spm.m
44,832
utf_8
d2d75e50e191a0c29cf483d58a754d7f
function varargout=spm(varargin) % SPM: Statistical Parametric Mapping (startup function) %_______________________________________________________________________ % ___ ____ __ __ % / __)( _ \( \/ ) % \__ \ )___/ ) ( Statistical Parametric Mapping % (___/(__) (_/\/\_) SPM - http://www.fil.ion.ucl.ac.uk/...
github
lcnhappe/happe-master
spm_orthviews.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/spm_orthviews.m
77,288
utf_8
8878b323c3d77a20da9a6c983c6cb96a
function varargout = spm_orthviews(action,varargin) % Display Orthogonal Views of a Normalized Image % FORMAT H = spm_orthviews('Image',filename[,position]) % filename - name of image to display % area - position of image % - area(1) - position x % - area(2) - position y % - area...
github
lcnhappe/happe-master
spm_maff.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/spm_maff.m
11,287
utf_8
67d7a7a2de40e5f6a1c0c0e5e9f630f3
function [M,h] = spm_maff(varargin) % Affine registration to MNI space using mutual information % FORMAT M = spm_maff(P,samp,x,b0,MF,M,regtyp,ff) % P - filename or structure handle of image % x - cell array of {x1,x2,x3}, where x1 and x2 are % co-ordinates (from ndgrid), and x3 is a list of % ...
github
lcnhappe/happe-master
spm_normalise.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/spm_normalise.m
13,235
utf_8
5dfafbc96b6282a48b19ee3433a77167
function params = spm_normalise(VG,VF,matname,VWG,VWF,flags) % Spatial (stereotactic) normalization % % FORMAT params = spm_normalise(VG,VF,matname,VWG,VWF,flags) % VG - template handle(s) % VF - handle of image to estimate params from % matname - name of file to store deformation definitions % VWG ...
github
lcnhappe/happe-master
spm_minmax.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/spm_minmax.m
3,705
utf_8
58192721e506d5814be863bb8a7e2acf
function [mnv,mxv] = spm_minmax(g) % Compute a suitable range of intensities for VBM preprocessing stuff % FORMAT [mnv,mxv] = spm_minmax(g) % g - array of data % mnv - minimum value % mxv - maximum value % % A MOG with two Gaussians is fitted to the intensities. The lower % Gaussian is assumed to represent backgr...
github
lcnhappe/happe-master
spm_create_vol.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/spm_create_vol.m
4,914
utf_8
3d1ffa54c52618a0923d6642b8f5e471
function V = spm_create_vol(V,varargin) % Create a volume % FORMAT V = spm_create_vol(V) % V - image volume information (see spm_vol.m) %____________________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % John Ashburner % $Id$ for i=1:numel(V), ...
github
lcnhappe/happe-master
spm_check_installation.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/spm_check_installation.m
19,147
utf_8
5500b12cea8521a513b4ff3226dc8f4d
function spm_check_installation(action) % Check SPM installation % FORMAT spm_check_installation('basic') % Perform a superficial check of SPM installation [default]. % % FORMAT spm_check_installation('full') % Perform an in-depth diagnostic of SPM installation. % % FORMAT spm_check_installation('build') % Build signat...
github
lcnhappe/happe-master
spm_prep2sn.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/spm_prep2sn.m
7,345
utf_8
41b5744c0289cc48a8070de4648e82da
function [po,pin] = spm_prep2sn(p) % Convert the output from spm_preproc into an sn.mat % FORMAT [po,pin] = spm_prep2sn(p) % p - the results of spm_preproc % po - the output in a form that can be used by % spm_write_sn. % pin - the inverse transform in a form that can be % used by spm_write_sn. %________...
github
lcnhappe/happe-master
cfg_getfile.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/matlabbatch/cfg_getfile.m
46,070
utf_8
3e6a6877315f1b08af13c88de5044295
function [t,sts] = cfg_getfile(varargin) % File selector % FORMAT [t,sts] = cfg_getfile(n,typ,mesg,sel,wd,filt,frames) % n - Number of files % A single value or a range. e.g. % 1 - Select one file % Inf - Select any number of files % [1 Inf] - Select 1 to In...
github
lcnhappe/happe-master
coor2D.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@meeg/coor2D.m
4,007
utf_8
f94070275bb14e35788e110abf929115
function [res, plotind] = coor2D(this, ind, val, mindist) % returns x and y coordinates of channels in 2D plane % FORMAT coor2D(this) % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % Vladimir Litvak, Laurence Hunt % $Id: coor2D.m 43...
github
lcnhappe/happe-master
cache.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@meeg/cache.m
754
utf_8
327310c88f9e84a225af302977c46fe6
function res = cache(this, stuff) % Method for retrieving/putting stuff from/into the temporary cache % FORMAT res = cache(obj, name) % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % Stefan Kiebel % $Id: cache.m 1373 2008-04-11 14:2...
github
lcnhappe/happe-master
path.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@meeg/path.m
558
utf_8
7149045fd0a2ac178f0e2dcaf166b5e0
function res = path(this, name) % Method for getting/setting path % FORMAT res = path(this, name) % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % Stefan Kiebel % $Id: path.m 1373 2008-04-11 14:24:03Z spm $ switch nargin case 1...
github
lcnhappe/happe-master
fname.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@meeg/fname.m
538
utf_8
00404808a43026efada0ed0cb853d259
function res = fname(this, name) % Method for getting/setting file name % FORMAT res = fname(this, name) % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % Stefan Kiebel % $Id: fname.m 1373 2008-04-11 14:24:03Z spm $ switch nargin ...
github
lcnhappe/happe-master
fnamedat.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@meeg/fnamedat.m
589
utf_8
39857f5d9ecf819f3bc1581bde7009cf
function res = fnamedat(this, name) % Method for getting/setting file name of data file % FORMAT res = fnamedat(this, name) % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % Stefan Kiebel % $Id: fnamedat.m 1373 2008-04-11 14:24:03Z s...
github
lcnhappe/happe-master
privatepermission.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@file_array/privatepermission.m
827
utf_8
be8d85c3b8ab99ec9cf086139103335f
function varargout = permission(varargin) % Format % For getting the value % dat = permission(obj) % % For setting the value % obj = permission(obj,dat) % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % % $Id$ if nargin==2, va...
github
lcnhappe/happe-master
privatescl_slope.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@file_array/privatescl_slope.m
680
utf_8
4f91ac10412885a1654d520cdaf4c008
function varargout = scl_slope(varargin) % Format % For getting the value % dat = scl_slope(obj) % % For setting the value % obj = scl_slope(obj,dat) % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % % $Id$ if nargin==2, varar...
github
lcnhappe/happe-master
subsasgn.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@file_array/subsasgn.m
4,553
utf_8
8649bb5b2b003aef0a04f01504128d47
function obj = subsasgn(obj,subs,dat) % Overloaded subsasgn function for file_array objects. % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % % $Id$ if isempty(subs) return; end; if ~strcmp(subs(1).type,'()'), if strcmp(su...
github
lcnhappe/happe-master
privatedim.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@file_array/privatedim.m
762
utf_8
0ad58f05456fccb279755b25289027c4
function varargout = dim(varargin) % Format % For getting the value % dat = dim(obj) % % For setting the value % obj = dim(obj,dat) % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % % $Id$ if nargin==2, varargout{1} = asgn(vara...
github
lcnhappe/happe-master
privatescl_inter.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@file_array/privatescl_inter.m
681
utf_8
341f747372c0465de4be134d3595e133
function varargout = scl_inter(varargin) % Format % For getting the value % dat = scl_inter(obj) % % For setting the value % obj = scl_inter(obj,dat) % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % % $Id$ if nargin==2, varar...
github
lcnhappe/happe-master
privatefname.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@file_array/privatefname.m
648
utf_8
87ba48423085238dda8deb873c3a5a24
function varargout = fname(varargin) % Format % For getting the value % dat = fname(obj) % % For setting the value % obj = fname(obj,dat) % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % % $Id$ if nargin==2, varargout{1} = as...
github
lcnhappe/happe-master
privateoffset.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@file_array/privateoffset.m
697
utf_8
5b5493cb277651ae207a6e094e50f16f
function varargout = offset(varargin) % Format % For getting the value % dat = offset(obj) % % For setting the value % obj = offset(obj,dat) % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % % $Id$ if nargin==2, varargout{1} =...
github
lcnhappe/happe-master
privatedtype.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@file_array/privatedtype.m
2,225
utf_8
4e4a2cfe6a4a9d295f1b9f3eb3fd3eb1
function varargout = dtype(varargin) % Format % For getting the value % dat = dtype(obj) % % For setting the value % obj = dtype(obj,dat) % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % % $Id$ if nargin==2, varargout{1} = as...
github
lcnhappe/happe-master
subsref.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@file_array/subsref.m
5,222
utf_8
80f9298dd645012f0fe42fcb32d6beef
function varargout=subsref(obj,subs) % SUBSREF Subscripted reference % An overloaded function... %__________________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % % $Id$ if isempty(subs), return; end switch subs(1).type case '{}' er...
github
lcnhappe/happe-master
disp.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@file_array/disp.m
887
utf_8
64720ef6ff6e10ebb67d01f5d3a04f7f
function disp(obj) % Display a file_array object % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % % $Id$ if numel(struct(obj))>1, fprintf(' %s object: ', class(obj)); sz = size(obj); if length(sz)>4, fpri...
github
lcnhappe/happe-master
offset.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@file_array/private/offset.m
697
utf_8
5b5493cb277651ae207a6e094e50f16f
function varargout = offset(varargin) % Format % For getting the value % dat = offset(obj) % % For setting the value % obj = offset(obj,dat) % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % % $Id$ if nargin==2, varargout{1} =...
github
lcnhappe/happe-master
scl_slope.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@file_array/private/scl_slope.m
680
utf_8
4f91ac10412885a1654d520cdaf4c008
function varargout = scl_slope(varargin) % Format % For getting the value % dat = scl_slope(obj) % % For setting the value % obj = scl_slope(obj,dat) % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % % $Id$ if nargin==2, varar...
github
lcnhappe/happe-master
scl_inter.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@file_array/private/scl_inter.m
681
utf_8
341f747372c0465de4be134d3595e133
function varargout = scl_inter(varargin) % Format % For getting the value % dat = scl_inter(obj) % % For setting the value % obj = scl_inter(obj,dat) % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % % $Id$ if nargin==2, varar...
github
lcnhappe/happe-master
fname.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@file_array/private/fname.m
648
utf_8
87ba48423085238dda8deb873c3a5a24
function varargout = fname(varargin) % Format % For getting the value % dat = fname(obj) % % For setting the value % obj = fname(obj,dat) % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % % $Id$ if nargin==2, varargout{1} = as...
github
lcnhappe/happe-master
dim.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@file_array/private/dim.m
762
utf_8
0ad58f05456fccb279755b25289027c4
function varargout = dim(varargin) % Format % For getting the value % dat = dim(obj) % % For setting the value % obj = dim(obj,dat) % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % % $Id$ if nargin==2, varargout{1} = asgn(vara...
github
lcnhappe/happe-master
permission.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@file_array/private/permission.m
827
utf_8
be8d85c3b8ab99ec9cf086139103335f
function varargout = permission(varargin) % Format % For getting the value % dat = permission(obj) % % For setting the value % obj = permission(obj,dat) % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % % $Id$ if nargin==2, va...
github
lcnhappe/happe-master
dtype.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@file_array/private/dtype.m
2,225
utf_8
4e4a2cfe6a4a9d295f1b9f3eb3fd3eb1
function varargout = dtype(varargin) % Format % For getting the value % dat = dtype(obj) % % For setting the value % obj = dtype(obj,dat) % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % % $Id$ if nargin==2, varargout{1} = as...
github
lcnhappe/happe-master
subsasgn.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@nifti/subsasgn.m
14,522
utf_8
86db451a023fd9a4a9252278adcab3ab
function obj = subsasgn(obj,subs,varargin) % Subscript assignment % See subsref for meaning of fields. % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % % $Id$ switch subs(1).type, case {'.'}, if numel(obj)~=nargin-2, e...
github
lcnhappe/happe-master
subsref.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@nifti/subsref.m
8,717
utf_8
3e5580b77072a8d2a98deb98231f6bab
function varargout = subsref(opt,subs) % Subscript referencing % % Fields are: % dat - a file-array representing the image data % mat0 - a 9-parameter affine transform (from qform0) % Note that the mapping is from voxels (where the first % is considered to be at [1,1,1], to m...
github
lcnhappe/happe-master
create.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@nifti/create.m
1,922
utf_8
3d0a267602ecbe433be656c175acb2a2
function create(obj,wrt) % Create a NIFTI-1 file % FORMAT create(obj) % This writes out the header information for the nifti object % % create(obj,wrt) % This also writes out an empty image volume if wrt==1 % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Cen...
github
lcnhappe/happe-master
getdict.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@nifti/private/getdict.m
5,184
utf_8
eebe7d552eb3613897e82d860005c90e
function d = getdict % Dictionary of NIFTI stuff % _______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % % $Id$ persistent dict; if ~isempty(dict), d = dict; return; end; % Datatype t = true; f = false; table = {... 0 ,'UN...
github
lcnhappe/happe-master
write_extras.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/spm8/@nifti/private/write_extras.m
829
utf_8
598b84950ce613b42919ce1f50a59132
function extras = write_extras(fname,extras) % Write extra bits of information %_______________________________________________________________________ % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging % % $Id$ [pth,nam,ext] = fileparts(fname); switch ext case {'.hdr','.img','.nii'} mname = fullfile(pt...
github
lcnhappe/happe-master
delete.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/gifti/@xmltree/delete.m
1,189
utf_8
9ca7b2db1b9fc84848585e118ac9d026
function tree = delete(tree,uid) % XMLTREE/DELETE Delete (delete a subtree given its UID) % % tree - XMLTree object % uid - array of UID's of subtrees to be deleted %__________________________________________________________________________ % % Delete a subtree given its UID % The tree parameter must be in ...
github
lcnhappe/happe-master
save.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/gifti/@xmltree/save.m
5,114
utf_8
1c7adbb3f79946f51f25d9031fcb515c
function varargout = save(tree, filename) % XMLTREE/SAVE Save an XML tree in an XML file % FORMAT varargout = save(tree,filename) % % tree - XMLTree % filename - XML output filename % varargout - XML string %__________________________________________________________________________ % % Convert an XML tree into a ...
github
lcnhappe/happe-master
branch.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/gifti/@xmltree/branch.m
1,750
utf_8
407ff520e9de6dc9150a5b4f44d75c90
function subtree = branch(tree,uid) % XMLTREE/BRANCH Branch Method % FORMAT uid = parent(tree,uid) % % tree - XMLTree object % uid - UID of the root element of the subtree % subtree - XMLTree object (a subtree from tree) %__________________________________________________________________________ % % Return a su...
github
lcnhappe/happe-master
flush.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/gifti/@xmltree/flush.m
1,413
utf_8
64502185e2efb9de8f36e36751a39517
function tree = flush(tree,uid) % XMLTREE/FLUSH Flush (Clear a subtree given its UID) % % tree - XMLTree object % uid - array of UID's of subtrees to be cleared % Default is root %__________________________________________________________________________ % % Clear a subtree given its UID (remove...
github
lcnhappe/happe-master
copy.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/gifti/@xmltree/copy.m
1,634
utf_8
e6df62a4f41243b78ed8c517b15e493b
function tree = copy(tree,subuid,uid) % XMLTREE/COPY Copy Method (copy a subtree in another branch) % FORMAT tree = copy(tree,subuid,uid) % % tree - XMLTree object % subuid - UID of the subtree to copy % uid - UID of the element where the subtree must be duplicated %______________________________________...
github
lcnhappe/happe-master
convert.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/gifti/@xmltree/convert.m
5,573
utf_8
05b85174fb85e5d62de81654b76ef7ab
function s = convert(tree,uid) % XMLTREE/CONVERT Converter an XML tree in a structure % % tree - XMLTree object % uid - uid of the root of the subtree, if provided. % Default is root % s - converted structure %__________________________________________________________________________ % %...
github
lcnhappe/happe-master
editor.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/gifti/@xmltree/editor.m
12,418
utf_8
80850644600bde45b47898d068ef0978
function editor(tree) %XMLTREE/EDITOR A Graphical User Interface for an XML tree % EDITOR(TREE) opens a new figure displaying the xmltree object TREE. % H = EDITOR(TREE) also returns the figure handle H. % % This is a beta version of <xmltree/view> successor % % See also XMLTREE %___________________________________...
github
lcnhappe/happe-master
find.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/gifti/@xmltree/find.m
5,901
utf_8
b241bfaac569f137b8b809b7b66765f3
function list = find(varargin) % XMLTREE/FIND Find elements in a tree with specified characteristics % FORMAT list = find(varargin) % % tree - XMLTree object % xpath - string path with specific grammar (XPath) % uid - lists of root uid's % parameter/value - pair of pattern % list - list of uid's of matched elements...
github
lcnhappe/happe-master
xml_parser.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/gifti/@xmltree/private/xml_parser.m
16,192
utf_8
7e44abd21a10863623b455d03e0651bb
function tree = xml_parser(xmlstr) % XML (eXtensible Markup Language) Processor % FORMAT tree = xml_parser(xmlstr) % % xmlstr - XML string to parse % tree - tree structure corresponding to the XML file %__________________________________________________________________________ % % xml_parser.m is an XML 1.0 (http:/...
github
lcnhappe/happe-master
save.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/gifti/@gifti/save.m
21,043
utf_8
747d3d8c45fa4a27160c0c333450a4dc
function save(this,filename,encoding) % Save GIfTI object in a GIfTI format file % FORMAT save(this,filename) % this - GIfTI object % filename - name of GIfTI file to be created [Default: 'untitled.gii'] % encoding - optional argument to specify encoding format, among % ASCII, Base64Binary, GZipBase6...
github
lcnhappe/happe-master
gifti.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/gifti/@gifti/gifti.m
3,728
utf_8
37f5d9e67cb8f5e79f2ac46e1486ffd0
function this = gifti(varargin) % GIfTI Geometry file format class % Geometry format under the Neuroimaging Informatics Technology Initiative % (NIfTI): % http://www.nitrc.org/projects/gifti/ % http://nifti.nimh.nih.gov/ %_____________________________________________________________...
github
lcnhappe/happe-master
read_gifti_file.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/gifti/@gifti/private/read_gifti_file.m
6,604
utf_8
3e691fdd0839d8cfad3929e4e181a5c1
function this = read_gifti_file(filename, this) % Low level reader of GIfTI 1.0 files % FORMAT this = read_gifti_file(filename, this) % filename - XML GIfTI filename % this - structure with fields 'metaData', 'label' and 'data'. %__________________________________________________________________________ % Cop...
github
lcnhappe/happe-master
isintent.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/gifti/@gifti/private/isintent.m
2,477
utf_8
611bd4b3bf09d89f88da3652cc8e6320
function [a, b] = isintent(this,intent) % Correspondance between fieldnames and NIfTI intent codes % FORMAT ind = isintent(this,intent) % this - GIfTI object % intent - fieldnames % a - indices of found intent(s) % b - indices of dataarrays of found intent(s) %_______________________________________...
github
lcnhappe/happe-master
sb_rhs_venant.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/simbio/sb_rhs_venant.m
1,317
utf_8
2a6743d0e11f6cd5ca8bc3f2a5bab884
function rhs = sb_rhs_venant(pos,dir,vol); % SB_RHS_VENANT % % $Id$ %find node closest to source position next_nd = sb_get_next_nd(pos,vol.pos); %find nodes neighbouring closest node if isfield(vol,'tet') ven_nd = sb_get_ven_nd(next_nd,vol.tet); elseif isfield(vol,'hex') ven_nd = sb_get_ven_nd(next_nd,vol.hex...
github
lcnhappe/happe-master
netcdf.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/netcdf/netcdf.m
5,097
utf_8
3cc73e65d1ed73e0a6836af118228033
function S = netcdf(File,varargin) % Function to read NetCDF files % S = netcdf(File) % Input Arguments % File = NetCDF file to read % Optional Input Arguments: % 'Var',Var - Read data for VarArray(Var), default [1:length(S.VarArray)] % 'Rec',Rec - Read data for Record(Rec), default [1:S.NumRecs] % Output Argum...
github
lcnhappe/happe-master
writeCPersist.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/ctf/writeCPersist.m
5,086
utf_8
0c56dc571aa56100f050678e5fe815ff
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%% Function writeCPersist %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function writeCPersist(filename,Tag) % Version 1.2 24 April 2007. Removed terminating null characters from charatcer strings % ...
github
lcnhappe/happe-master
getCTFBalanceCoefs.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/ctf/getCTFBalanceCoefs.m
20,490
utf_8
2c434fcbdb53fbc50ee3fbda72e98883
function [alphaMEG,MEGindex,MEGbalanceindex,alphaGref,Grefindex,Gbalanceindex]=... getCTFBalanceCoefs(ds,balanceType,unit); % Reads balance coefficients for SQUID data in phi0's, and converts to coefficients % for data in physical units. % Input : ds : (1) ds structure from readCTFds % balanceType : 'N...
github
lcnhappe/happe-master
writeCTFds.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/ctf/writeCTFds.m
68,946
utf_8
96615f4833d69490d5b3e47f6f86c538
function ds=writeCTFds(datasetname,ds,data,unit); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % This program creates datasets that can be analyzed by CTF software. % % ...
github
lcnhappe/happe-master
writeRes4.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/ctf/writeRes4.m
8,560
utf_8
416bc2b62624835c63140e54415d2f49
function res4=writeRes4(res4File,res4,MAX_COILS); % Write the new .res4 file. Use ieee-be (big endian) format % Character-string output is done using function writeCTFstring which % checks that strings are the correct length for the .res4 file format. % Function calls: - writeCTFstring (included in this listing)....
github
lcnhappe/happe-master
addCTFtrial.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/ctf/addCTFtrial.m
51,483
utf_8
b59730fdb231f07741e7e87dea9e6c1c
function cntrl=addCTFtrial(datasetname,data,unit,mrk,cls,badSegments); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % This program creates datasets that can be analyzed by CTF software. %...
github
lcnhappe/happe-master
setCTFDataBalance.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/ctf/setCTFDataBalance.m
32,056
utf_8
894c3744554abe635876ce6944dca0cd
function [data,ds]=setCTFDataBalance(data,ds,balance1,unit,chanList,messages); % Version 1.1 13 April 2007 Mod to chanList: If chanList is omitted and % size(data,2)<ds.res4.no_channels, then setCTFDataBalance % sets chanList=1:size(data,2) and prints a war...
github
lcnhappe/happe-master
writeCTFMRI.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/ctf/writeCTFMRI.m
8,517
utf_8
c6bdbc15d67e3621b8109f6b399f5eae
function writeCTFMRI(fileName,MRItags,MRIdata); % Version 1.2 25 April 2007 Module writeCPersist changed, and removed from this text % file. % Version 1.1 19 April 2007 : No changes from v1.0 % Version 1.0 27 Oct. 2006 % Write a CTF MRI in v4 format. % For file format and a def...
github
lcnhappe/happe-master
readCTFds.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/ctf/readCTFds.m
36,570
utf_8
e228d972ce0710af61be4d1d0c89f3fe
function ds=readCTFds(datasetname) % ************************************************************************ % % This program is provided to users of CTF MEG systems as a courtesy only. % It's operation has not been verified for clinical use. % Please do not redistribute it without permission from CTF Systems I...
github
lcnhappe/happe-master
sqddemo.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/sqdproject/sqddemo.m
13,633
utf_8
3e91690d3d302c08b018202387b55f3c
function sqddemo(action) % SQDDEMO; Provides a interactive demo explaining the use of sqdread and % sqdwrite functions persistent Newline; persistent Running; persistent Decoration; if ~nargin action = 'start'; end; switch lower(action) case 'init' Newline = sprintf('\n'); Running = uicontinue(...
github
lcnhappe/happe-master
get.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/sqdproject/@chanhandle/get.m
6,405
utf_8
72519eea5ca24f660f7729d2725a9efb
function out = get(t,varargin) % GET Get object properties. % out = GET(t,'PropertyName') returns the value of the specified % property for the object t. If t is a vector of handles, then % get will return an M-by-1 cell array of values where M is equal % to length(t). If 'PropertyName' is replaced by a 1-by-N or...
github
lcnhappe/happe-master
chanhandle.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/sqdproject/@chanhandle/chanhandle.m
3,739
utf_8
d43b79acd008d1094f4aabd77746e71b
function t = chanhandle(varargin) % T = CHANHANDLE; Constructor for class CHANHANDLE % Chanhandle class contains channel-specific information only. % An object belonging to chanhandle has the following properties: % ChannelNumber % Sensitivity % SensorInfo % Usage: % t = chanhandle; Default values % t = chanhan...
github
lcnhappe/happe-master
get.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/sqdproject/@sqdhandle/get.m
3,777
utf_8
ee256890517a8c295444d2cc58ed54cd
function out = get(t,prop) % GET Get object properties. % out = GET(t,'PropertyName') returns the value of the specified % property for the object t. If t is a vector of handles, then % get will return an M-by-1 cell array of values where M is equal % to length(t). If 'PropertyName' is replaced by a 1-by-N or N-b...
github
lcnhappe/happe-master
putdata.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/sqdproject/@sqdhandle/putdata.m
10,726
utf_8
59ea137b693298211a264bf05305767f
function err = putdata(t,filename,varargin) % ERR = PUTDATA(SQDHANDLE,FILENAME,'DATA',channeldata); % Writes new Channel Data to .sqd file given by 'filename'. The template % (Acquisition and Setup Information) is chosen from SQDHANDLE. It assumes % that the channeldata is in a format (shown below) and appropriately ...
github
lcnhappe/happe-master
get.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/external/sqdproject/@acqparam/get.m
3,525
utf_8
c36be430c00919d46ee5184a3794613e
function out = get(t,prop) % GET(T,PROP) Get object properties. % out = GET(t,'PropertyName') returns the value of the specified % property for the object t. If t is a vector of handles, then % get will return an M-by-1 cell array of values where M is equal % to length(t). If 'PropertyName' is replaced by a 1-by-...
github
lcnhappe/happe-master
nansum.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/src/nansum.m
194
utf_8
d26aaa8d5695a2cd15c51e72c3d4a186
% NANSUM provides a replacement for MATLAB's nanmean. % % For usage see SUM. function y = nansum(x, dim) x(isnan(x)) = 0; if nargin==1 y = sum(x); else y = sum(x,dim); end end % function
github
lcnhappe/happe-master
nanstd.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/src/nanstd.m
248
utf_8
fa0dc38960ab4c502a685ee11ebb3328
% NANSTD provides a replacement for MATLAB's nanstd that is almost % compatible. % % For usage see STD. Note that the three-argument call with FLAG is not % supported. function Y = nanstd(varargin) Y = sqrt(nanvar(varargin{:})); end % function
github
lcnhappe/happe-master
nanmean.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/src/nanmean.m
245
utf_8
8ab56ab826c1e69fd89a8937baae4bf0
% NANMEAN provides a replacement for MATLAB's nanmean. % % For usage see MEAN. function y = nanmean(x, dim) if nargin<2 N = sum(~isnan(x)); y = nansum(x) ./ N; else N = sum(~isnan(x), dim); y = nansum(x, dim) ./ N; end end % function
github
lcnhappe/happe-master
ft_connectivity_corr.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/connectivity/ft_connectivity_corr.m
8,589
utf_8
65aed98bf500c7a9cfb427092834352e
function [c, v, outcnt] = ft_connectivity_corr(input, varargin) % FT_CONNECTIVITY_CORR computes correlation, coherence or a related % quantity from a data-matrix containing a covariance or cross-spectral % density. % % Use as % [c, v, n] = ft_connectivity_corr(input, varargin) % % The input data input should be an a...
github
lcnhappe/happe-master
ft_connectivity_psi.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/connectivity/ft_connectivity_psi.m
5,649
utf_8
db9ca445aeb3e9dc93fc82e65fdc4335
function [c, v, n] = ft_connectivity_psi(input, varargin) % FT_CONNECTIVITY_PSI computes the phase slope index from a data-matrix % containing the cross-spectral density. It implements the method described % in: Nolte et al., Robustly estimating the flow direction of information % in complex physical systems. Physical...
github
lcnhappe/happe-master
sfactorization_wilson2x2.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/connectivity/private/sfactorization_wilson2x2.m
8,406
utf_8
73bfa40093aff0fb82e9ca232813340b
function [H, Z, S, psi] = sfactorization_wilson2x2(S,freq,Niterations,tol,cmbindx,fb,init,checkflag) % SFACTORIZATION_WILSON2X2 performs pairwise non-parametric spectral factorization on % cross-spectra, based on Wilson's algorithm. % % Usage : [H, Z, psi] = sfactorization_wilson(S,freq); % % Inputs : S (1-sided, 3D-...
github
lcnhappe/happe-master
ft_warning.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/connectivity/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
sfactorization_wilson.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/connectivity/private/sfactorization_wilson.m
7,826
utf_8
42fad4dc181f918d0eae9b4b4158dec0
function [H, Z, S, psi] = sfactorization_wilson(S,freq,Niterations,tol,fb,init,checkflag) % SFACTORIZATION_WILSON performs multivariate non-parametric spectral factorization on % cross-spectra, based on Wilson's algorithm. % % Usage : [H, Z, S, psi] = sfactorization_wilson(S,freq); % % Inputs : S (1-sided, 3D-spectra...
github
lcnhappe/happe-master
test_corrupt_matfiles.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/test/test_corrupt_matfiles.m
977
utf_8
5ab1651a584ef5f3c5112d046bde5d58
function test_corrupt_matfiles % MEM 8gb % WALLTIME 10:00:00 files = findfiles('/home/common/matlab/fieldtrip/data/test'); status = true(size(files)); for i=1:length(files) try tmp = load(files{i}); clear tmp fprintf('passed reading %s\n', files{i}); catch status(i) = false; warning('failed r...
github
lcnhappe/happe-master
test_tutorial_eventrelatedstatistics.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/test/test_tutorial_eventrelatedstatistics.m
9,523
utf_8
2cf8fa1f8ee413ae513bff8697d5f5e7
function test_tutorial_eventrelatedstatistics(datadir) % MEM 2500mb % WALLTIME 00:20:00 % TEST test_tutorial_eventrelatedstatistics % TEST ft_timelockanalysis ft_multiplotER ft_singleplotER ft_timelockstatistics % TEST ft_topoplotER ft_clusterplot global ft_default; ft_default.feedback = 'no'; if nargin==0 if isp...
github
lcnhappe/happe-master
test_old_ft_freqanalysis.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/test/test_old_ft_freqanalysis.m
4,746
utf_8
6af1e431442a1ca536fdb9f401782c5c
function test_old_ft_freqanalysis % MEM 1gb % WALLTIME 00:10:00 % TEST test_old_ft_freqanalysis function test_ft_freqanalysis % TEST_FT_FREQANALYSIS % This script tests the ft_freqanalysis functions using simulated data % A. Stolk and J.M. Schoffelen % simulate one second of data, samplefreq = 1200 hz t = (1:1200)/...
github
lcnhappe/happe-master
test_bug1306.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/test/test_bug1306.m
3,242
utf_8
6eafe5e96456aef8810d60524f895038
function test_bug1306b % MEM 1500mb % WALLTIME 00:10:00 % Use function signature below for testing --- note that xUnit does not seem to support it. %function datanew = test_ft_preprocessing(datainfo, writeflag, version) % TEST test_ft_preprocessing % TEST ft_preprocessing ref_datasets % writeflag determines whether...
github
lcnhappe/happe-master
test_bug1988.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/test/test_bug1988.m
3,484
utf_8
843427441883f86575969f343d6b7737
function test_bug1988 % MEM 3gb % WALLTIME 00:45:00 % TEST test_bug1988 ft_volumesegment ft_prepare_headmodel %% segmentedmri.mat % from current version may not match what is on the ftp for tutorials % as it's called in the BF tutorial mri = ft_read_mri('/home/common/matlab/fieldtrip/data/ftp/tutorial/beamformer/Su...
github
lcnhappe/happe-master
test_ft_sourceanalysis.m
.m
happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/test/test_ft_sourceanalysis.m
84,994
utf_8
8dd6e4bc89de5f6d19e62984a36b9342
function [varargout] = test_ft_sourceanalysis(datainfo, writeflag, version, diagnosticsflag) % MEM 4gb % WALLTIME 04:30:00 % TEST test_ft_sourceanalysis % TEST ft_sourceanalysis ref_datasets % writeflag determines whether the output should be saved to disk % version determines the output directory % diagnosticsflag...