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 | lcnbeapp/beapp-master | std_clustmaxelec.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/std_clustmaxelec.m | 2,424 | utf_8 | 1a243dcf2ffd5e5be4cbaf58a69e3ac9 | % std_clustmaxelec() - function to find the electrode with maximum absolute projection
% for each component of a cluster
% Usage:
% >> [STUDY, ALLEEG] = std_clustmaxelec(STUDY, ALLEEG, clustind);
%
% Inputs:
% STUDY - STUDY set structure containing (loaded) EEG dataset structures
% ... |
github | lcnbeapp/beapp-master | pop_studydesign.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/pop_studydesign.m | 28,501 | utf_8 | c75d88532140cf5c2dfed99d9a06843f | % pop_studydesign() - create a STUDY design structure.
%
% Usage:
% >> [STUDY, ALLEEG] = pop_studydesign(STUDY, ALLEEG, key1, val1, ...);
%
% Inputs:
% STUDY - EEGLAB STUDY set
% ALLEEG - vector of the EEG datasets included in the STUDY structure
%
% Optional inputs:
%
% Authors: Arnaud Delorme, Apri... |
github | lcnbeapp/beapp-master | std_createclust.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/std_createclust.m | 11,296 | utf_8 | 324e2986c5494686e6ea9fa03913cb90 | % std_createclust() - dreate a new empty cluster. After creation, components
% may be (re)assigned to it using std_movecomp().
% Usage:
% >> [STUDY] = std_createclust(STUDY, ALLEEG, 'key', val);
% Inputs:
% STUDY - STUDY set comprising some or all of the EEG datasets in A... |
github | lcnbeapp/beapp-master | std_checkconsist.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/std_checkconsist.m | 2,299 | utf_8 | e6cbe33ddc8c1fb52b95a02d9bfff1e3 | % std_checkconsist() - Create channel groups for plotting.
%
% Usage:
% >> boolval = std_checkconsist(STUDY, 'uniform', 'condition');
% >> boolval = std_checkconsist(STUDY, 'uniform', 'group');
% Inputs:
% STUDY - EEGLAB STUDY set comprising some or all of the EEG datasets... |
github | lcnbeapp/beapp-master | std_readersp.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/std_readersp.m | 27,340 | utf_8 | 08af4639c7feccd4cfa23d595573b331 | % std_readersp() - load ERSP measures for data channels or for all
% components of a specified cluster. This function is
% also being used to read ITC and ERPimage data.
% Usage:
% >> [STUDY, erspdata, times, freqs, erspbase] = ...
% std_readersp(STUDY, ALLEEG, v... |
github | lcnbeapp/beapp-master | std_moveoutlier.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/std_moveoutlier.m | 3,042 | utf_8 | d3911bba9d7caea1be8f3002aac0e6aa | % std_moveoutlier() - Commandline function, to reassign specified outlier component(s)
% from a cluster to its outlier cluster.
% Usage:
% >> STUDY = std_moveoutlier(STUDY, ALLEEG, from_cluster, comps);
% Inputs:
% STUDY - EEGLAB STUDY set comprising some... |
github | lcnbeapp/beapp-master | pop_savestudy.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/pop_savestudy.m | 4,821 | utf_8 | fa0293fa03f7350151ab08e951c9bee4 | % pop_savestudy() - save a STUDY structure to a disk file
%
% Usage:
% >> STUDY = pop_savestudy( STUDY, EEG ); % pop up and interactive window
% >> STUDY = pop_savestudy( STUDY, EEG, 'key', 'val', ...); % no pop-up
%
% Inputs:
% STUDY - STUDY structure.
% EEG... |
github | lcnbeapp/beapp-master | pop_chanplot.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/pop_chanplot.m | 27,582 | utf_8 | dcfb38346565d3ab979d9dbbfb4adfc1 | % pop_chanplot() - graphic user interface (GUI)-based function with plotting
% options for visualizing. Only channel measures (e.g., spectra,
% ERPs, ERSPs, ITCs) that have been computed and saved in the study EEG
% datasets can be visualized. These can be computed using ... |
github | lcnbeapp/beapp-master | std_erpimage.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/std_erpimage.m | 11,020 | utf_8 | e610e6ac79890f95ca1b2048f25013fa | % std_erpimage() - Compute ERP images and save them on disk.
%
% Usage:
% >> std_erpimage( EEG, 'key', 'val', ...);
%
% Inputs:
% EEG - a loaded epoched EEG dataset structure. May be an array
% of such structure containing several datasets.
%
% Optional inputs:
% 'components' - [numeric ... |
github | lcnbeapp/beapp-master | std_cell2setcomps.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/std_cell2setcomps.m | 3,058 | utf_8 | 199bb737c086d50fb622cb63d9511eeb | % std_cell2setcomps - convert .sets and .comps to cell array. The .sets and
% .comps format is useful for GUI but the cell array
% format is used for plotting and statistics.
%
% Usage:
% [ struct sets comps ] = std_cell2setcomps(STUDY, clustind);
%
% Author: Arnaud... |
github | lcnbeapp/beapp-master | std_editset.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/std_editset.m | 16,290 | utf_8 | f7eebc870fafd57a1465c80e576543d1 | % std_editset() - modify a STUDY set structure.
%
% Usage:
% >> [STUDY, ALLEEG] = std_editset(STUDY, ALLEEG, key1, val1, ...);
% Inputs:
% STUDY - EEGLAB STUDY set
% ALLEEG - vector of the EEG datasets included in the STUDY structure
%
% Optional inputs:
% 'commands' - {cell_array} change... |
github | lcnbeapp/beapp-master | std_readitc.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/std_readitc.m | 1,475 | utf_8 | 0c0874e2789900f1ae4de7b00a08107f | % std_readitc() - load ITC measures for data channels or
% for all components of a specified cluster.
% Usage:
% >> [STUDY, itcdata, times, freqs] = ...
% std_readitc(STUDY, ALLEEG, varargin);
%
% Note: this function is a helper function that contains a call to the
% std_re... |
github | lcnbeapp/beapp-master | pop_loadstudy.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/pop_loadstudy.m | 7,189 | utf_8 | 8d440b01a822257a1e561422e3db090f | % pop_loadstudy() - load an existing EEGLAB STUDY set of EEG datasets plus
% its corresponding ALLEEG structure. Calls std_loadalleeg().
% Usage:
% >> [STUDY ALLEEG] = pop_loadstudy; % pop up a window to collect filename
% >> [STUDY ALLEEG] = pop_loadstudy( 'key', 'val', ...); % no pop-up
%
% Opt... |
github | lcnbeapp/beapp-master | std_readspecgram.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/std_readspecgram.m | 4,381 | utf_8 | 96b0d97423e8bcaaf19884201bfb7a63 | % std_readspecgram() - returns the stored mean power spectrogram for an ICA component
% or a data channel in a specified dataset. The spectrogram is
% assumed to have been saved in a Matlab file,
% "[dataset_name].datspecgram", in the same
% direct... |
github | lcnbeapp/beapp-master | std_pacplot.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/std_pacplot.m | 1,889 | utf_8 | b3f29ed622b651d14f649518b13acd9f | % std_pacplot() - Commandline function to plot cluster PAC
% (phase-amplitude coupling).
%
% Usage:
% >> [STUDY] = std_pacplot(STUDY, ALLEEG, key1, val1, key2, val2);
% >> [STUDY itcdata itctimes itcfreqs pgroup pcond pinter] = ...
% std_pacplot(STUDY, ALLEEG ...);
% Inputs:
% ... |
github | lcnbeapp/beapp-master | pop_dipparams.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/pop_dipparams.m | 3,898 | utf_8 | 49636409e08a138da902e72246f3131a | % pop_dipparams() - Set plotting parameters for dipoles.
%
% Usage:
% >> STUDY = pop_dipparams(STUDY, 'key', 'val');
%
% Inputs:
% STUDY - EEGLAB STUDY set
%
% Optional inputs:
% 'axistight' - ['on'|'off'] Plot closest MRI slide. Default is 'off'.
% 'projimg' - ['on'|'off'] lot dipoles projectio... |
github | lcnbeapp/beapp-master | std_precomp.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/std_precomp.m | 29,881 | utf_8 | 8762251e54d64dd26e02ab863ad5b239 | % std_precomp() - Precompute measures (ERP, spectrum, ERSP, ITC) for channels in a
% study. If channels are interpolated before computing the measures,
% the updated EEG datasets are also saved to disk. Called by
% pop_precomp(). Follow with pop_plotstudy(). See Exampl... |
github | lcnbeapp/beapp-master | std_rebuilddesign.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/std_rebuilddesign.m | 2,984 | utf_8 | 09dbb018032fb646a0680536ac8e28a2 | % std_rebuilddesign - reduild design structure when datasets have been
% removed or added.
% Usage:
% STUDY = std_rebuilddesign(STUDY, ALLEEG);
% STUDY = std_rebuilddesign(STUDY, ALLEEG, designind);
%
% Inputs:
% STUDY - EEGLAB STUDY set
% ALLEEG - vector of the EEG datasets includ... |
github | lcnbeapp/beapp-master | pop_clustedit.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/pop_clustedit.m | 59,499 | utf_8 | 715c47c2679a7429d5bad3902ce3b72e | % pop_clustedit() - graphic user interface (GUI)-based function with editing and plotting
% options for visualizing and manipulating an input STUDY structure.
% Only component measures (e.g., dipole locations, scalp maps, spectra,
% ERPs, ERSPs, ITCs) that have been compu... |
github | lcnbeapp/beapp-master | std_findsameica.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/std_findsameica.m | 2,400 | utf_8 | ee2f9d014b8e1c3c6c6844f0fb9e8193 | % std_findsameica() - find groups of datasets with identical ICA decomposiotions
% (search identical weight*sphere matrices)
%
% Usage:
% >> clusters = std_findsameica(ALLEEG);
% >> clusters = std_findsameica(ALLEEG,icathreshold);
% Inputs:
% ALLEEG - a vector of loaded EE... |
github | lcnbeapp/beapp-master | std_plotcurve.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/std_plotcurve.m | 29,673 | utf_8 | b474f6ed97d0a5964d1b1a07a72ee958 | % std_plotcurve() - plot ERP or spectral traces for a STUDY component
% or channel cluster
% Usage:
% >> std_plotcurve( axvals, data, 'key', 'val', ...)
% Inputs:
% axvals - [vector or cell array] axis values for the data.
% data - [cell array] mean data for each subject group and/or d... |
github | lcnbeapp/beapp-master | std_movie.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/std_movie.m | 5,749 | utf_8 | b76bc3cff273bfdc46ca097d380720fa | % std_topomovie - make movie in the frequency domain
%
% Usage:
% >> [STUDY] = std_movie(STUDY, ALLEEG, key1, val1, key2, val2, ...);
%
% Inputs:
% STUDY - STUDY structure comprising some or all of the EEG datasets in ALLEEG.
% ALLEEG - vector of EEG dataset structures for the dataset(s) in the STUD... |
github | lcnbeapp/beapp-master | std_readfile.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/std_readfile.m | 15,609 | utf_8 | 5f6b1005263321cdba24e80b92827d6c | % std_readfile() - Read data file containing STUDY measures.
%
% Usage:
% >> [data param range1 range2] = std_readfile(filename, 'key', val);
%
% Inputs:
% filename - [string] read specific file, for instance 's1.daterp'
% containing ERP data for dataset "s1.set". It is also
% ... |
github | lcnbeapp/beapp-master | std_figtitle.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/std_figtitle.m | 11,976 | utf_8 | 8d0cdf735518b04d1c27c37441ecc076 | % std_figtitle() - Generate plotting figure titles in a cell array
%
% Usage:
% >> celltxt = std_figtitle(key1, val1, key2, val2);
%
% Inputs:
% 'subject' - [string] Subject name
% 'datatype' - [string] data type (For example 'erp')
% 'chanlabels' - [cell array or string] channel names
% 'compnames'... |
github | lcnbeapp/beapp-master | std_chantopo.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/std_chantopo.m | 9,652 | utf_8 | 28bf5cd485d8031d2b9e2dc3180c2738 | % std_chantopo() - plot ERP/spectral/ERSP topoplot at a specific
% latency/frequency.
% Usage:
% >> std_chantopo( data, 'key', 'val', ...)
% Inputs:
% data - [cell array] mean data for each subject group and/or data
% condition. These arrays are usually returned by function
% ... |
github | lcnbeapp/beapp-master | std_uniformfiles.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/studyfunc/std_uniformfiles.m | 3,122 | utf_8 | 4338ced427d77d85832ff2965d6735b9 | % std_uniformfiles() - Check uniform channel distribution accross data files
%
% Usage:
% >> boolval = std_uniformfiles(STUDY, ALLEEG);
%
% Inputs:
% STUDY - EEGLAB STUDY
%
% Outputs:
% boolval - [-1|0|1] 0 if non uniform, 1 if uniform, -1 if error
%
% Authors: Arnaud Delorme, SCCN/UCSD, CERCO/CN... |
github | lcnbeapp/beapp-master | iseeglabdeployed.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/iseeglabdeployed.m | 154 | utf_8 | cb8716ae372b37132bb2a58c54d09cd0 | % iseeglabdeployed - true for EEGLAB compile version and false otherwise
function val = iseeglabdeployed
try
val = isdeployed;
catch
val = 0;
end |
github | lcnbeapp/beapp-master | eeg_getversion.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/eeg_getversion.m | 1,551 | utf_8 | a6ee3614031195b8aaf40cfab1251520 | % eeg_getversion() - obtain EEGLAB version number
%
% Usage:
% >> vers = eeg_getversion;
% >> [vers vnum] = eeg_getversion;
%
% Outputs:
% vers = [string] EEGLAB version number
% vnum = [float] numerical value for the version. For example 11.3.2.4b
% is converted to 11.324
%
% Authors: Arnaud De... |
github | lcnbeapp/beapp-master | gethelpvar.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/gethelpvar.m | 9,432 | utf_8 | 7d60bb94c02933e99c9a469f683938dc | % gethelpvar() - convert a Matlab m-file help-message header
% into out variables
% Usage:
% >> [vartext, varnames] = gethelpvar( filein, varlist);
%
% Inputs:
% filein - input filename (with .m extension)
% varlist - optional list of variable to return. If absent
% retrun al... |
github | lcnbeapp/beapp-master | eeg_retrieve.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/eeg_retrieve.m | 2,820 | utf_8 | fc0ecd37ff8b71e41ef51d43a4aca461 | % eeg_retrieve() - Retrieve an EEG dataset from the variable
% containing all datasets (standard: ALLEEG).
%
% Usage: >> EEG = eeg_retrieve( ALLEEG, index );
%
% Inputs:
% ALLEEG - variable containing all datasets
% index - index of the dataset to retrieve
%
% Outputs:
% EEG - out... |
github | lcnbeapp/beapp-master | vararg2str.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/vararg2str.m | 6,803 | utf_8 | 547476651c6901a530169197da722d2d | % vararg2str() - transform arguments into string for evaluation
% using the eval() command
%
% Usage:
% >> strout = vararg2str( allargs );
% >> strout = vararg2str( allargs, inputnames, inputnum, nostrconv );
%
% Inputs:
% allargs - Cell array containing all arguments
% inputnames - Cell arra... |
github | lcnbeapp/beapp-master | unique_bc.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/unique_bc.m | 717 | utf_8 | 1ac4b80ca073d969c0b6d0e7a0db1f3d | % unique_bc - unique backward compatible with Matlab versions prior to 2013a
function [C,IA,IB] = unique_bc(A,varargin);
errorFlag = error_bc;
v = version;
indp = find(v == '.');
v = str2num(v(1:indp(2)-1));
if v > 7.19, v = floor(v) + rem(v,1)/10; end;
if nargin > 2
ind = strmatch('legacy', varargin);
if ~... |
github | lcnbeapp/beapp-master | setdiff_bc.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/setdiff_bc.m | 704 | utf_8 | 6ff610d1b3099610817bea2fc877650d | % setdiff_bc - setdiff backward compatible with Matlab versions prior to 2013a
function [C,IA] = setdiff_bc(A,B,varargin);
errorFlag = error_bc;
v = version;
indp = find(v == '.');
v = str2num(v(1:indp(2)-1));
if v > 7.19, v = floor(v) + rem(v,1)/10; end;
if nargin > 2
ind = strmatch('legacy', varargin);
if... |
github | lcnbeapp/beapp-master | union_bc.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/union_bc.m | 724 | utf_8 | 958b5b56de3e20c3892b2d7809e830fd | % union_bc - union backward compatible with Matlab versions prior to 2013a
function [C,IA,IB] = union_bc(A,B,varargin);
errorFlag = error_bc;
v = version;
indp = find(v == '.');
v = str2num(v(1:indp(2)-1));
if v > 7.19, v = floor(v) + rem(v,1)/10; end;
if nargin > 2
ind = strmatch('legacy', varargin);
if ~i... |
github | lcnbeapp/beapp-master | getkeyval.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/getkeyval.m | 4,294 | utf_8 | f3f11db9f974963b9b8b34e48f778ae9 | % getkeyval() - get variable value from a 'key', 'val' sequence string.
%
% Usage:
% >> val = getkeyval( keyvalstr, varname, mode, defaultval);
%
% Inputs:
% keyvalstr - string containing 'key', 'val' arguments
% varname - string for the name of the variable or index
% of th... |
github | lcnbeapp/beapp-master | is_sccn.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/is_sccn.m | 388 | utf_8 | 99847041e8b1f185a51f93939d33b819 | % is_sccn() - returns 1 if computer is located at SCCN (Swartz Center
% for computational Neuroscience) and 0 otherwise
function bool = is_sccn;
bool = 0;
domnane = ' ';
try
eval([ 'if isunix, [tmp domname] = unix(''hostname -d'');' ...
'end;' ...
'bool = strcmpi... |
github | lcnbeapp/beapp-master | gettext.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/gettext.m | 2,465 | utf_8 | 414488f77905ebf88c561e892df73cd7 | % gettext() - This function prints a dialog box on screen and waits for
% the user to enter a string. There is a cancel button which
% returns a value of [].
% Usage:
% >> out = gettext(label1,label2,...,label7);
%
% Author: Colin Humphries, CNL / Salk Institute, La Jolla, 1997
% Copyright ... |
github | lcnbeapp/beapp-master | eeg_getdatact.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/eeg_getdatact.m | 12,037 | utf_8 | bc4bb0dfeb0f9183cb320544ba36fbdd | % eeg_getdatact() - get EEG data from a specified dataset or
% component activity
%
% Usage:
% >> signal = eeg_getdatact( EEG );
% >> signal = eeg_getdatact( EEG, 'key', 'val');
%
% Inputs:
% EEG - Input dataset
%
% Optional input:
% 'channel' - [integer array] read only specifi... |
github | lcnbeapp/beapp-master | eeg_readoptions.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/eeg_readoptions.m | 3,419 | utf_8 | 4104fa6db19f22201a63ba183b0d2f5f | % eeg_readoptions() - Read EEGLAB memory options file (eeg_options) into a
% structure variable (opt).
%
% Usage:
% [ header, opt ] = eeg_readoptions( filename, opt );
%
% Input:
% filename - [string] name of the option file
% opt - [struct] option structure containing backup values... |
github | lcnbeapp/beapp-master | hlp_argstruct2linearcell.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/hlp_argstruct2linearcell.m | 1,953 | utf_8 | cf2a64e0864d59a83ffeefe20c9f2b09 | % hlp_argstruct2linearcell() - Linearize configation output of arg_guipanel
%
% Usage:
% >> cellval = hlp_argstruct2linearcells( cfg );
%
% Inputs:
% cfg - output configuration structure from arg_guipanel
%
% Output:
% cellval - cell array of output values
%
% Author: Arnaud Delorme, SCCN & CERCO, CNRS, 2013-
%... |
github | lcnbeapp/beapp-master | eeg_checkset.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/eeg_checkset.m | 67,343 | utf_8 | 74bd5c7e30d59db57d1939717b297f08 | % eeg_checkset() - check the consistency of the fields of an EEG dataset
% Also: See EEG dataset structure field descriptions below.
%
% Usage: >> [EEGOUT,changes] = eeg_checkset(EEG); % perform all checks
% except 'makeur'
% >> [EEGOUT,change... |
github | lcnbeapp/beapp-master | ismember_bc.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/ismember_bc.m | 711 | utf_8 | 565a06126820e316b2bf233d652bf24c | % ismember_bc - ismember backward compatible with Matlab versions prior to 2013a
function [C,IA] = ismember_bc(A,B,varargin);
errorFlag = error_bc;
v = version;
indp = find(v == '.');
v = str2num(v(1:indp(2)-1));
if v > 7.19, v = floor(v) + rem(v,1)/10; end;
if nargin > 2
ind = strmatch('legacy', varargin);
... |
github | lcnbeapp/beapp-master | intersect_bc.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/intersect_bc.m | 752 | utf_8 | 72bc774f899f5fb5e3b75d2c1ef99049 | % intersect_bc - intersect backward compatible with Matlab versions prior to 2013a
function [C,IA,IB] = intersect_bc(A,B,varargin);
errorFlag = error_bc;
v = version;
indp = find(v == '.');
v = str2num(v(1:indp(2)-1));
if v > 7.19, v = floor(v) + rem(v,1)/10; end;
if nargin > 2
ind = strmatch('legacy', varargin... |
github | lcnbeapp/beapp-master | plugin_getweb.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/plugin_getweb.m | 6,337 | utf_8 | d6ad7bd9e33713cfe1317b4e55cd3c3f | function plugin = plugin_getweb(type, pluginOri, mode)
if nargin < 1, help plugin_getweb; return; end;
if nargin < 2, pluginOri = []; end;
if nargin < 3, mode = 'merge'; end; % 'merge' or 'newlist'
% convert plugin list format if necessary
if isfield(pluginOri, 'plugin'), pluginOri = plugin_convert(pluginOri); end;
... |
github | lcnbeapp/beapp-master | eeg_checkchanlocs.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/eeg_checkchanlocs.m | 8,655 | utf_8 | 2664c683e10493731ebda7dfec52968f | % eeg_checkchanlocs() - Check the consistency of the channel locations structure
% of an EEGLAB dataset.
%
% Usage:
% >> EEG = eeg_checkchanlocs( EEG, 'key1', value1, 'key2', value2, ... );
% >> [chanlocs chaninfo] = eeg_checkchanlocs( chanlocs, chaninfo, 'key1', value1, 'key2', value2, ... );
%
%... |
github | lcnbeapp/beapp-master | removepath.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/removepath.m | 513 | utf_8 | 34d13ec0480b1b9ac75172c48ddc833e | % remove all path with a given parent path
% varargin contains a list of path to exclude
function removepath(parentpath, varargin)
if isempty(parentpath), return; end;
folder = path;
if ispc, sep = ';'; else sep = ':'; end;
indSep = find(folder == sep);
indSep = [ 0 indSep length(folder)+1 ];
for iSep = 1:length(ind... |
github | lcnbeapp/beapp-master | pop_editoptions.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/pop_editoptions.m | 12,372 | utf_8 | 4b1d33adb233aa9407e0e2d68d052b5b | % pop_editoptions() - Edit memory-saving eeglab() options. These are stored in
% a file 'eeg_options.m'. With no argument, pop up a window
% to allow the user to set/unset these options. Store
% user choices in a new 'eeg_options.m' file in the
% ... |
github | lcnbeapp/beapp-master | pop_delset.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/pop_delset.m | 2,422 | utf_8 | 44b38052f003e12e39320b5613f097ae | % pop_delset() - Delete a dataset from the variable containing
% all datasets.
%
% Usage: >> ALLEEG = pop_delset(ALLEEG, indices);
%
% Inputs:
% ALLEEG - array of EEG datasets
% indices - indices of datasets to delete. None -> a pop_up window asks
% the user to choose. Index < 0 -> i... |
github | lcnbeapp/beapp-master | pop_rejmenu.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/pop_rejmenu.m | 23,728 | utf_8 | 6acbdd38985f06d47dd90f857a5d8679 | % pop_rejmenu() - Main menu for rejecting trials in an EEG dataset
%
% Usage: >> pop_rejmenu(INEEG, typerej);
%
% Inputs:
% INEEG - input dataset
% typerej - data to reject on (0 = component activations;
% 1 = raw electrode data). {Default: 1 = reject on raw data}
%
% Author: Arnaud Delorme,... |
github | lcnbeapp/beapp-master | plugin_extract.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/plugin_extract.m | 13,795 | utf_8 | 7b0ac3bbdf7c634198dacd247b55052a | function restartEeglabFlag = plugin_extract(type, pluginlist, page)
if nargin < 3, page = 1; end;
% type may be 'import' or 'process'
restartEeglabFlag = false;
pluginsPerPage = 15;
% check the presence of unzip
%str = evalc('!unzip');
%if length(str) < 200
% error([ '"unzip" could not be found. Instal unzip an... |
github | lcnbeapp/beapp-master | eeg_store.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/eeg_store.m | 5,423 | utf_8 | d4bd75d1e701aaaba164772acc07725e | % eeg_store() - store specified EEG dataset(s) in the ALLEG variable
% containing all current datasets, after first checking
% dataset consistency using eeg_checkset().
%
% Usage: >> [ALLEEG EEG index] = eeg_store(ALLEEG, EEG);
% >> [ALLEEG EEG index] = eeg_store(ALLEEG, EEG, index)... |
github | lcnbeapp/beapp-master | eeg_eval.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/eeg_eval.m | 4,224 | utf_8 | a33398d975e05e64806a16536fdcca32 | % eeg_eval() - apply eeglab function to a collection of input datasets
%
% Usage:
% >> OUTEEG = eeg_eval(funcname, INEEG, 'key1', value1, 'key2', value2 ...);
%
% Inputs:
% funcname - [string] name of the function
% INEEG - EEGLAB input dataset(s)
%
% Optional inputs
% 'params' - [cell array] ... |
github | lcnbeapp/beapp-master | eegh.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/eegh.m | 4,073 | utf_8 | 71f03408b617f0adfa6816bce5a1adbd | % eegh() - history function.
%
% Usage:
% >> eegh( arg );
% >> eegh( arg1, arg2 );
%
% Inputs:
% - With no argument, it return the command history.
% - arg is a string: with a string argument it pulls the command
% onto the stack.
% - arg is a number>0: execute the element... |
github | lcnbeapp/beapp-master | eeglabexefolder.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/eeglabexefolder.m | 1,076 | utf_8 | bea2b2d54e501ccc2c6e113759384061 | % eeglabexefolder - return the exe folder for EEGLAB. This function is only
% relevant for the compiled version of EEGLAB.
%
% Author: Arnaud Delorme, SCCN & CERCO, CNRS, 2008-
% Copyright (C) 15 Feb 2002 Arnaud Delorme, Salk Institute, arno@salk.edu
%
% This program is free software; you can redistr... |
github | lcnbeapp/beapp-master | eeg_hist.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/eeg_hist.m | 1,405 | utf_8 | 5da5613eba9f720215dbf40a723b2008 | % eeg_hist() - history for EEGLAB dataset.
%
% Usage:
% >> EEGOUT = eeg_hist( EEGIN, command );
%
% Inputs:
% EEGIN - input dataset
% command - [string] eeglab command
%
% Global variables used:
% EEGOUT - output dataset with updated history field
%
% Author: Arnaud Delorme, SCCN/INC/UCSD, Dec 2003
%
% See a... |
github | lcnbeapp/beapp-master | plugin_movepath.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/plugin_movepath.m | 4,313 | utf_8 | 3227a2fd281e8711ca0580850c1c0f20 | %plugin_movepath()- Given a path to a plugin folder, this function will
% put the plugin at the bottom of the path.
%
% Usage:
% plugin_movepath('x','begin'); % Put plugin 'x' at the top of the path
% plugin_movepath('x','end'); % Put plugin 'x' at the bottom of... |
github | lcnbeapp/beapp-master | eeglab_error.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/eeglab_error.m | 3,159 | utf_8 | 52bd326118eafedfeaaa94a2741cbedc | % eeglab_error() - generate an eeglab error.
%
% Usage: >> eeglab_error;
%
% Inputs: none, simply capture the last error generated.
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, 2006-
%
% see also: eeglab()
% Copyright (C) 2006 Arnaud Delorme, Salk Institute, arno@salk.edu
%
% This program is free software; you can re... |
github | lcnbeapp/beapp-master | plugin_installstartup.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/adminfunc/plugin_installstartup.m | 3,762 | utf_8 | 37419d82594718647942d0ca8356c632 | % plugin_installstartup() - install popular toolboxes when EEGLAB starts
%
% Usage:
% >> restartEeglabFlag = plugin_installstartup; % pop up window
%
% Outputs:
% restartEeglabFlag - [0|1] restart EEGLAB
%
% Author: Arnaud Delorme, SCCN, INC, UCSD, Oct. 29, 2013-
% Copyright (C) 2013 Arnaud Delorme, SCCN, INC, UCS... |
github | lcnbeapp/beapp-master | topoplot.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/topoplot.m | 70,628 | utf_8 | 583a17ef238d3edc7ac2be5e6f200825 | % topoplot() - plot a topographic map of a scalp data field in a 2-D circular view
% (looking down at the top of the head) using interpolation on a fine
% cartesian grid. Can also show specified channnel location(s), or return
% an interpolated value at an arbitrary scalp locat... |
github | lcnbeapp/beapp-master | readegilocs.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/readegilocs.m | 2,898 | utf_8 | db357ca683b59cbb87ff64dc2cc5bb0b | % readegilocs() - look up locations for EGI EEG dataset.
%
% Usage:
% >> EEG = readegilocs(EEG);
% >> EEG = readegilocs(EEG, fileloc);
%
% Inputs:
% EEG - EEGLAB data structure
%
% Optional input:
% fileloc - EGI channel location file
%
% Outputs:
% EEG - EEGLAB data structure with channel lo... |
github | lcnbeapp/beapp-master | eyelike.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/eyelike.m | 748 | utf_8 | 83fb00bb12b75f143a88314e92ebe31f | % eyelike() - calculate a permutation matrix P and a scaling (diagonal) maxtrix S
% such that S*P*E is eyelike (so permutation acts on the rows of E).
% E must be a square matrix.
% Usage:
% >> [eyelike, S, P] = eyelike(E);
%
% Author: Benjamin Blankertz (blanker@first.gmd.de) 3/2/00
fun... |
github | lcnbeapp/beapp-master | trial2eegplot.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/trial2eegplot.m | 1,822 | utf_8 | 5c1c543407f5710d59e780a95904b9d5 | % trial2eegplot() - convert eeglab format to eeplot format of rejection window
%
% Usage:
% >> eegplotarray = trial2eegplot(rej, rejE, points, color);
%
% Inputs:
% rej - rejection vector (0 and 1) with one value per trial
% rejE - electrode rejection array (size nb_elec x trials) also
% made of 0 an... |
github | lcnbeapp/beapp-master | eegplot2event.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/eegplot2event.m | 2,932 | utf_8 | f36ca0fc4d6df10d0b3f83cc6f657f74 | % eegplot2event() - convert EEGPLOT rejections into events
% compatible with the eeg_eegrej function for rejecting
% continuous portions of datasets.
%
% Usage:
% >> [events] = eegplot2event( eegplotrej, type, colorin, colorout );
%
% Inputs:
% eegplotrej - EEGPLOT output (TMPRE... |
github | lcnbeapp/beapp-master | celltomat.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/celltomat.m | 1,264 | utf_8 | 2c99b2d1c464697b97f856035aa819f6 | % celltomat() - convert cell array to matrix
%
% Usage: >> M = celltomat( C );
%
% Author: Arnaud Delorme, CNL / Salk Institute, Jan 25 2002
%
% Note: This function overloads the neuralnet toolbox function CELLTOMAT,
% but does not have all its capacities. Delete this version if you have
% the toolbox.
% Copyright (C... |
github | lcnbeapp/beapp-master | matsel.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/matsel.m | 3,756 | utf_8 | 3779008d46e2601576fba59179f48a0c | % matsel() - select rows, columns, and epochs from given multi-epoch data matrix
%
% Usage:
% >> [dataout] = matsel(data,frames,framelist);
% >> [dataout] = matsel(data,frames,framelist,chanlist);
% >> [dataout] = matsel(data,frames,framelist,chanlist,epochlist);
%
% Inputs:
% data - input data... |
github | lcnbeapp/beapp-master | axcopy.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/axcopy.m | 3,330 | utf_8 | 1c1014b531a21afc497c89e4ffe2ef09 | % axcopy() - Copy a Matlab figure axis and its graphic objects to a new pop-up window
% using the left mouse button.
%
% Usage: >> axcopy
% >> axcopy(fig)
% >> axcopy('noticks')
% >> axcopy(fig, command)
%
% Notes:
% 1) Clicking the left mouse button on a Matlab figure axis copies... |
github | lcnbeapp/beapp-master | eegthresh.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/eegthresh.m | 4,825 | utf_8 | fd6a3945cb7a5cd79d0869f38eaa59ca | % eegthresh() - reject trials with out-of-bounds channel values within a
% specified epoch time range.
%
% Usage:
% >> [Iin, Iout, newsignal, elec] = eegthresh( signal, frames, ...
% elecs, negthresh, posthresh, timerange, starttime,endtime);
%
% Required inputs:
% signal - 2-D da... |
github | lcnbeapp/beapp-master | qqdiagram.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/qqdiagram.m | 4,745 | utf_8 | f9f838e5edd084613e8c54cb85cbb56f | % qqdiagram() - Empirical quantile-quantile diagram.
%
% Description:
% The quantiles (percentiles) of the input distribution Y are plotted (Y-axis)
% against the corresponding quantiles of the input distribution X.
% If only X is given, the corresponding quantiles are plotted ... |
github | lcnbeapp/beapp-master | loaddat.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/loaddat.m | 1,775 | utf_8 | 7d7aa4df464e400f37de47be51520ea6 | % loaddat() - loading neuroscan format data file into matlab.
%
% Usage:
% >> [typeeeg, rt, response, n] = loaddat( filename );
%
% Inputs:
% filename - input Neuroscan .dat file
%
% Outputs:
% typeeeg - type of the sweeps
% rt - reaction time of the subject
% response - response of the subject
% n - number... |
github | lcnbeapp/beapp-master | cbar.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/cbar.m | 6,149 | utf_8 | d94610ba8d3cbc14b360527461547953 | % cbar() - Display full or partial color bar
%
% Usage:
% >> cbar % create a vertical cbar on the right side of a figure
% >> cbar(type) % specify direction as 'vert' or 'horiz'
% >> cbar(type,colors) % specify which colormap colors to plot
% else
% >> cbar(axhandle) % specify the axes to draw cbar in
%
% ... |
github | lcnbeapp/beapp-master | readlocs.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/readlocs.m | 33,881 | utf_8 | 7e1d85669932dffeca11a8fad52e02ca | % readlocs() - read electrode location coordinates and other information from a file.
% Several standard file formats are supported. Users may also specify
% a custom column format. Defined format examples are given below
% (see File Formats).
% Usage:
% >> eloc = readlocs( ... |
github | lcnbeapp/beapp-master | erpimage.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/erpimage.m | 157,376 | utf_8 | deef1ab9cf000fdabbc8e026c72c4366 | % erpimage() - Plot a colored image of a collection of single-trial data epochs, optionally
% sorted on and/or aligned to an input sorting variable and smoothed across
% trials with a Gaussian weighted moving-average. (To return event-aligned data
% without plotting, use eegalign(... |
github | lcnbeapp/beapp-master | readegi.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/readegi.m | 5,517 | utf_8 | de08c5adb26f9e5f5987d0b8a286debe | % readegi() - read EGI Simple Binary datafile (versions 2,3,4,5,6,7).
% Return header info, EEG data, and any event data.
% Usage:
% >> [head, TrialData, EventData, CatIndex] = readegi(filename, dataChunks, forceversion)
%
% Required Input:
% filename = EGI data filename
%
% Optional Input:
% dataChunks = v... |
github | lcnbeapp/beapp-master | compvar.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/compvar.m | 2,725 | utf_8 | 7116923a815fb34f3c3c092817999c9e | % compvar() - project selected components and compute the variance of
% the original data they account for.
%
% Usage:
% >> [proj, variance] = compvar( data, wts_or_act, winv, components);
%
% Required Inputs:
% data - 2-D (channels, points) or 3-D (channels, frames, trials)
% dat... |
github | lcnbeapp/beapp-master | plotsphere.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/plotsphere.m | 4,822 | utf_8 | 5a1e3b5a681d7d5be1d6ad3d5a0d3f0e | % plotsphere() - This function is used to plot a sphere and
% project them onto specific surfaces. This may
% be used for plotting dipoles for instance.
%
% Usage:
% >> handle = plotsphere(pos, rad, 'key', 'val')
%
% Inputs:
% pos - [x y z] 3-D position of the sphere center
% ... |
github | lcnbeapp/beapp-master | projtopo.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/projtopo.m | 4,459 | utf_8 | dd1586daff2737f20be375d9f4e19666 | % projtopo() - plot projections of one or more ICA components along with
% the original data in a 2-d topographic array. Returns
% the data plotted. Click on subplot to examine separately.
% Usage:
% >> [projdata] = projtopo(data,weights,[compnums],'chan_locs',...
% ... |
github | lcnbeapp/beapp-master | voltype.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/voltype.m | 677 | utf_8 | 28455ecff10043767463871fdedc4413 | % VOLTYPE determines the type of volume conduction model
%
% Use as
% [type] = voltype(vol)
% to get a string describing the type, or
% [flag] = voltype(vol, desired)
% to get a boolean value.
%
% See also COMPUTE_LEADFIELD
% Copyright (C) 2007, Robert Oostenveld
%
function [type] = voltype(vol, desired)
if isfie... |
github | lcnbeapp/beapp-master | strmultiline.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/strmultiline.m | 3,151 | utf_8 | c1a6c98b7691f0623c7938d5cb68ae93 | % strmultiline() - format a long string as a multi-line string.
%
% Usage:
% >> strout = strmultiline( strin, maxlen, delimiter);
%
% Inputs:
% strin - one-line or several-line string
% maxlen - maximum line length
% delimiter - enter 10 here to separate lines with character 10. Default is
% ... |
github | lcnbeapp/beapp-master | floatread.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/floatread.m | 5,572 | utf_8 | 942a49968bcce849dfc9d359ac7d2651 | % floatread() - Read matrix from float file ssuming four byte floating point number
% Can use fseek() to read an arbitary (continguous) submatrix.
%
% Usage: >> a = floatread(filename,size,'format',offset)
%
% Inputs:
% filename - name of the file
% size - determine the number of float ele... |
github | lcnbeapp/beapp-master | writeeeg.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/writeeeg.m | 9,957 | utf_8 | b80ba013a795acbaa4122e842203239c | % writeeeg - Generating CNT/EDF/BDF/GDF-files using BIOSIG toolbox. Note
% that the CNT file format is not fully functional. See also the
% writecnt.m Matlab function (there is no fully working
% Neuroscan writing function to our knowledge).
%
% writeeeg( filename, data, srate, 'key', ... |
github | lcnbeapp/beapp-master | convertlocs.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/convertlocs.m | 9,621 | utf_8 | 9455542daae2061f96f576b6dc3d46da | % convertlocs() - Convert electrode locations between coordinate systems
% using the EEG.chanlocs structure.
%
% Usage: >> newchans = convertlocs( EEG, 'command');
%
% Input:
% chanlocs - An EEGLAB EEG dataset OR a EEG.chanlocs channel locations structure
% 'command' - ['cart2topo'|'sph2topo'|'sphb... |
github | lcnbeapp/beapp-master | isscript.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/isscript.m | 385 | utf_8 | 5e35a8cefee4828cc65eeb2abb2502a7 | % function checking if a specific file is a script%
function bool = isscript(fileName);
fid = fopen(fileName, 'r');
cont = true;
while cont && ~feof(fid)
l = strtok(fgetl(fid));
if ~isempty(l) && l(1) ~= '%'
if strcmpi(l, 'function')
bool = false; return;
else
bool... |
github | lcnbeapp/beapp-master | floatwrite.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/floatwrite.m | 3,169 | utf_8 | 8472e61c3208f7a445ec052e9cc52b4b | % floatwrite() - Write data matrix to float file.
%
% Usage: >> floatwrite(data,filename, 'format')
%
% Inputs:
% data - write matrix data to specified file as four-byte floating point numbers.
% filename - name of the file
% 'format' - The option FORMAT argument specifies the storage format as
% ... |
github | lcnbeapp/beapp-master | kurt.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/kurt.m | 1,697 | utf_8 | 649871ee149fc000974e3081ac13ff98 | % kurt() - return kurtosis of input data distribution
%
% Usage:
% >> k=kurt(data)
%
% Algorithm:
% Calculates kurtosis or normalized 4th moment of an input data vector
% Given a matrix, returns a row vector giving the kurtosis' of the columns
% (Ref: "Numerical Recipes," p. 612)
%
% Author: Martin Mckeown, CNL... |
github | lcnbeapp/beapp-master | jointprob.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/jointprob.m | 4,100 | utf_8 | 6f1300fd6123684425efaaa56c1e95c1 | % jointprob() - rejection of odd columns of a data array using
% joint probability of the values in that column (and
% using the probability distribution of all columns).
%
% Usage:
% >> [jp rej] = jointprob( signal );
% >> [jp rej] = jointprob( signal, threshold, jp, normalize, discre... |
github | lcnbeapp/beapp-master | readneurodat.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/readneurodat.m | 3,182 | utf_8 | 2658232f1fb962a2bad82932ad309164 | % readneurodat() - read neuroscan location file (.dat)
%
% Usage:
% >> [ CHANLOCS labels theta theta ] = readneurodat( filename );
%
% Inputs:
% filename - file name or matlab cell array { names x_coord y_coord }
%
% Outputs:
% CHANLOCS - [structure] EEGLAB channel location data structure. See
% ... |
github | lcnbeapp/beapp-master | shuffle.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/shuffle.m | 1,610 | utf_8 | aef9a1bc7914b99d6e312694b0522085 | % shuffle() - shuffle a given dimension in an array
%
% Usage: >> Y = shuffle(X)
% >> [Y = shuffle(X, DIM)
%
% Inputs:
% X - input array
% DIM - dimension index (default is firt non-singleton dimention)
%
% Outputs:
% Y - shuffled array
% I - forward indices (Y = X(I) if 1D)
% J - reverse indic... |
github | lcnbeapp/beapp-master | fastif.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/fastif.m | 1,159 | utf_8 | ac76d723f5de7649f75655cbdb653c1a | % fastif() - fast if function.
%
% Usage:
% >> res = fastif(test, s1, s2);
%
% Input:
% test - logical test with result 0 or 1
% s1 - result if 1
% s2 - result if 0
%
% Output:
% res - s1 or s2 depending on the value of the test
%
% Author: Arnaud Delorme, CNL / Salk Institute, 2001
% Copyright (... |
github | lcnbeapp/beapp-master | chancenter.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/chancenter.m | 3,837 | utf_8 | f0281f2036170701ee0f251a89f4663e | % chancenter() - recenter cartesian X,Y,Z channel coordinates
%
% Usage: >> [x y z newcenter] = chancenter(x,y,z,center);
%
% Optional inputs:
% x,y,z = 3D coordintates of the channels
% center = [X Y Z] known center different from [0 0 0]
% [] will optimize the center location according
%... |
github | lcnbeapp/beapp-master | eegplot2trial.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/eegplot2trial.m | 3,493 | utf_8 | 070a4620dcbcefa6063fde095d9ae592 | % eegplot2trial() - convert EEGPLOT rejections into trial and electrode
% rejections compatible with EEGLAB format.
%
% Usage:
% >> [trialrej elecrej] = eegplot2trial( eegplotrej, frames, ...
% sweeps, colorin, colorout );
%
% Inputs:
% eegplotrej - EEGPLOT output (TMPREJ; se... |
github | lcnbeapp/beapp-master | reref.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/reref.m | 9,677 | utf_8 | 6e0667e9dd7ca782c44c657e960bafd0 | % reref() - convert common reference EEG data to some other common reference
% or to average reference
% Usage:
% >> Dataout = reref(data); % convert all channels to average reference
% >> [Dataout Chanlocs] = reref(data, refchan, 'key', 'val');
% % convert data to new refere... |
github | lcnbeapp/beapp-master | plotdata.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/plotdata.m | 20,127 | utf_8 | dc7d1faf9633b845ff3de9c423067fc0 | % plotdata() - plot concatenated multichannel data epochs in two-column format
%
% Usage: >> plotdata(data)
% >> plotdata(data,frames)
% >> plotdata(data,frames,limits,title,channames,colors,rtitle,ydir)
%
% Necessary input:
% data = data consisting of consecutive epochs of (chans,frames)
... |
github | lcnbeapp/beapp-master | snapread.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/snapread.m | 5,372 | utf_8 | acab56fb5681e5c05feaebf418734cad | % snapread() - Read data in Snap-Master Standard Binary Data File Format
% Reads Snap-Master header and data matrix (nchans,nframes).
% Ref: Users Guide, Snap-Master for Windows (1997) p. 4-19
% Usage:
% >> data = snapread(filename); % read .SMA file data
% >> [data,params... |
github | lcnbeapp/beapp-master | cart2topo.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/cart2topo.m | 5,225 | utf_8 | 7ae7263796eecb060729861c9dd9b2fd | % cart2topo() - convert xyz-cartesian channel coordinates
% to polar topoplot() coordinates. Input data
% are points on a sphere centered at (0,0,0)
% or at optional input 'center'. This function
% is now DEPRECATED! See Important warning below.
%
% Usage: >> [t... |
github | lcnbeapp/beapp-master | spec.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/spec.m | 3,687 | utf_8 | 02cf60598edf850b8ac8f112277a5be7 | % spec() - power spectrum. This function replaces psd() function if the signal
% processing toolbox is not present. It uses the timef() function.
%
% Usage:
% >> [power freqs] = spec(X);
% >> [power freqs] = spec(X, nfft, fs, win, overlap);
%
% Inputs:
% X - data
% nfft - zero padding to lengt... |
github | lcnbeapp/beapp-master | icavar.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/icavar.m | 3,287 | utf_8 | 20340418c38178274dabeb7cfd17572d | % icavar() - project ICA component activations through the ICA weight matrices
% to reconstitute the observed data using selected ICA components.
% Returns time course of variance on scalp for each component.
%
% Usage: >> [srcvar] = icavar(data,weights,sphere,compnums);
%
% Inputs:
% data ... |
github | lcnbeapp/beapp-master | eegrej.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/eegrej.m | 6,611 | utf_8 | b882f67c5f4cfe3c0fbce6704b4faa70 | % eegrej() - reject/excise arbitrary periods from continuous EEG data
% (e.g., EEG.data).
%
% Usage:
% >> [outdata newt newevents boundevents] = ...
% eegrej( indata, regions, timelength, eventlatencies);
%
% Inputs:
% indata - input data (channels, frames). If indata is a string,
% ... |
github | lcnbeapp/beapp-master | sbplot.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/sbplot.m | 4,612 | utf_8 | aac99a4963fad7c8aa7f4010998bc965 | % sbplot() - create axes in arbitrary subplot grid positions and sizes
%
% Usage: >> axis_handle = sbplot(v,h,index)
% >> axis_handle = sbplot(v,h,[index1 index2])
% >> axis_handle = sbplot(v,h,[index1 index2],axprop,..)
% >> axis_handle = sbplot(v,h,[index1 index2],'ax',handle,axprop,..)
%
%... |
github | lcnbeapp/beapp-master | adjustlocs.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/adjustlocs.m | 17,345 | utf_8 | 540be08faa1b5d805504242c6d023cbb | % adjustlocs() - read neuroscan polar location file (.asc)
%
% Usage:
% >> chanlocs = adjustlocs( chanlocs );
% >> chanlocs = adjustlocs( chanlocs, 'key1', val1, 'key2', val2, ...);
%
% Inputs:
% chanlocs - EEGLAB channel location data structure. See
% help readlocs()
%
% Optional inputs:... |
github | lcnbeapp/beapp-master | sph2topo.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/sigprocfunc/sph2topo.m | 3,339 | utf_8 | 44852faa1bc45208398680f08a50db29 | % sph2topo() - Convert from a 3-column headplot file in spherical coordinates
% to 3-column topoplot() locs file in polar (not cylindrical) coords.
% Used for topoplot() and other 2-D topographic plotting programs.
% Assumes a spherical coordinate system in which horizontal angles... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.