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 | std_uniformfiles.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | iseeglabdeployed.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | eeg_getversion.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | gethelpvar.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | eeg_retrieve.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | vararg2str.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | unique_bc.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | setdiff_bc.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | union_bc.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | getkeyval.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | is_sccn.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | gettext.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | eeg_getdatact.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | eeg_readoptions.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | hlp_argstruct2linearcell.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | eeg_checkset.m | .m | happe-master/Packages/eeglab14_0_0b/functions/adminfunc/eeg_checkset.m | 69,153 | utf_8 | 7137e26ebd92dd9dfed8b74e47be557d | % 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 | lcnhappe/happe-master | ismember_bc.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | intersect_bc.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | plugin_getweb.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | eeg_checkchanlocs.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | removepath.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | pop_editoptions.m | .m | happe-master/Packages/eeglab14_0_0b/functions/adminfunc/pop_editoptions.m | 12,328 | utf_8 | 640ce0d9927c2f7fa8fc7e1955a0c98e | % 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 | lcnhappe/happe-master | pop_delset.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | pop_rejmenu.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | plugin_extract.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | eeg_store.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | eeg_eval.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | eegh.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | eeglabexefolder.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | eeg_hist.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | plugin_movepath.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | eeglab_error.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | plugin_installstartup.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | topoplot.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | readegilocs.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | eyelike.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | trial2eegplot.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | eegplot2event.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | celltomat.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | matsel.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | axcopy.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | eegthresh.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | qqdiagram.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | loaddat.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | cbar.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | readlocs.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | erpimage.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | readegi.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | compvar.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | plotsphere.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | projtopo.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | voltype.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | strmultiline.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | floatread.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | writeeeg.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | convertlocs.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | isscript.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | floatwrite.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | kurt.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | jointprob.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | readneurodat.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | shuffle.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | fastif.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | chancenter.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/chancenter.m | 3,703 | utf_8 | 27a231ace0a066d6e9ad7c3da227bbb7 | % 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 | lcnhappe/happe-master | eegplot2trial.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | reref.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/reref.m | 9,588 | utf_8 | d1a7ce88ac95a65fc25d21b6f9b28713 | % 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 | lcnhappe/happe-master | plotdata.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | snapread.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | cart2topo.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | spec.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | icavar.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | eegrej.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | sbplot.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | adjustlocs.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | sph2topo.m | .m | happe-master/Packages/eeglab14_0_0b/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... |
github | lcnhappe/happe-master | sobi.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/sobi.m | 5,094 | utf_8 | ce6035ad7a3d7312fee7cf1a37d8e04e | % sobi() - Second Order Blind Identification (SOBI) by joint diagonalization of
% correlation matrices. THIS CODE ASSUMES TEMPORALLY CORRELATED SIGNALS,
% and uses correlations across times in performing the signal separation.
% Thus, estimated time delayed covariance matrices must be nonsi... |
github | lcnhappe/happe-master | runica_ml.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/runica_ml.m | 43,480 | utf_8 | 62bb523264cef06666a2d818dea42918 | % runica() - Perform Independent Component Analysis (ICA) decomposition
% of input data using the logistic infomax ICA algorithm of
% Bell & Sejnowski (1995) with the natural gradient feature
% of Amari, Cichocki & Yang, or optionally the extended-ICA
% algorithm of Lee, Giro... |
github | lcnhappe/happe-master | runica_ml2.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/runica_ml2.m | 43,331 | utf_8 | d9f5448e45ce40d04ca05b45c6a092c4 | % runica() - Perform Independent Component Analysis (ICA) decomposition
% of input data using the logistic infomax ICA algorithm of
% Bell & Sejnowski (1995) with the natural gradient feature
% of Amari, Cichocki & Yang, or optionally the extended-ICA
% algorithm of Lee, Giro... |
github | lcnhappe/happe-master | writelocs.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/writelocs.m | 10,300 | utf_8 | f0fb3a6c7068e5ae70ee752f60ad6a76 | % writelocs() - write a file containing channel location, type and gain information
%
% Usage:
% >> writelocs( chanstruct, filename );
% >> writelocs( chanstruct, filename, 'key', 'val' );
%
% Inputs:
% chanstruct - EEG.chanlocs data structure returned by readlocs() containing
% channe... |
github | lcnhappe/happe-master | env.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/env.m | 3,005 | utf_8 | 40959ed7c77b4d587e2986bebd89b254 | % env() - return envelope of rows of a data matrix, or optionally
% of the data interpolated to a different sampling rate.
% Usage:
% >> envdata = env(data);
% >> envdata = env(data, timelimits, timearray);
%
% Inputs:
% data - (nchannels,ntimepoints) data array
%
% Optional Inputs:
% timelimits -... |
github | lcnhappe/happe-master | uiputfile2.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/uiputfile2.m | 2,674 | utf_8 | 3b31fa4d223e9408a8660905b763639a | % uiputfile2() - same as uigputfile but remember folder location.
%
% Usage: >> uiputfile2(...)
%
% Inputs: Same as uiputfile
%
% Author: Arnaud Delorme & Hilit Serby, Scott Makeig, SCCN, UCSD, 2004
% Thanks to input from Bas Kortmann
%
% Copyright (C) Arnaud Delorme & Hilit Serby, Scott Makeig, SCCN, UCSD, 200... |
github | lcnhappe/happe-master | entropy_rej.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/entropy_rej.m | 3,641 | utf_8 | e83760bd8d661f0883b5b955383fa06b | % entropy_rej() - calculation of entropy of a 1D, 2D or 3D array and
% rejection of odd last dimension values of the input data array
% using the discrete entropy of the values in that dimension
% (and using the probability distribution of all columns).
%
% Usage:
% >> [entropy... |
github | lcnhappe/happe-master | quantile.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/quantile.m | 2,747 | utf_8 | 1b58a5e543b13e76f3f75afd5f5f9219 | % quantile() - computes the quantiles of the data sample from a distribution X
%
% Description:
% If F is the cumulative distribution function (CDF) of X,
% the p-th-quantile Qp of distribution X is the value for which holds
% F(x) < p, for x < Qp, and
% F(x) >... |
github | lcnhappe/happe-master | eventlock.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/eventlock.m | 6,609 | utf_8 | 6794a0982011ab97d748d362169961d5 | % eventlock() - DEPRECATED: Please use eegalign() instead.
% eventlock() - Time lock data epochs to specified event frames or event x-values.
% Use to timelock existing data epochs to reaction times or other events
%
% Usage:
% >> [dataout,medval,shiftframes] = eventlock(data,frames,eventframes,medval);
... |
github | lcnhappe/happe-master | lookupchantemplate.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/lookupchantemplate.m | 988 | utf_8 | 16a6821223a3b7f6603677a26afeaecd | % lookupchantemplate - look up channel template.
%
% Usage:
% [ found transform ] = lookupchantemplate( filename, template_struct);
%
% Inputs:
% filename - channel location file name
% template_struct - template strcuture as defined in dipfitdefs
%
% Outputs:
% found - [0|1] 1 if a transformation was... |
github | lcnhappe/happe-master | readbdf.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/readbdf.m | 3,261 | utf_8 | e0daaa58677f9efc8fade44506ade229 | % readbdf() - Loads selected Records of an EDF or BDF File (European Data Format
% for Biosignals) into MATLAB. This function is outdate
% Use the functions sopen() and sread() instead
%
% This program is deprecated (obsolete). Use the sopen() and sread()
% function instead
% Version 2.11
%... |
github | lcnhappe/happe-master | readedf.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/readedf.m | 3,038 | utf_8 | 1d2f12e3aec361bb64c8efdaa0d89e50 | % readedf() - read eeg data in EDF format.
%
% Usage:
% >> [data,header] = readedf(filename);
%
% Input:
% filename - file name of the eeg data
%
% Output:
% data - eeg data in (channel, timepoint)
% header - structured information about the read eeg data
% header.length - length of header to jump ... |
github | lcnhappe/happe-master | loadeeg.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/loadeeg.m | 10,210 | utf_8 | 3148017a8fe87eb6fa0f26fb433c1800 | % loadeeg() - load a binary data file in Neuroscan .eeg file format.
%
% Usage:
% >> signal = loadeeg(filename);
% >> [signal, accept, typeeeg, rt, response, chan_names, pnts, ...
% ntrials, srate, xmin, xmax] = loadeeg( filename, chanlist, ...
% triallist, typerange, accepttype, rtrange, responsetype);
%
%... |
github | lcnhappe/happe-master | textsc.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/textsc.m | 1,965 | utf_8 | 8c2c0fcfccd2bafb12b0c76ab0e73b0c | % textsc() - places text in screen coordinates and places
% a title at the top of the figure.
%
% Usage:
% H = textsc(X,Y,TXT) places the text string, TXT
% at the normalized coordinates X and Y. H is the
% handle to the text object.
%
% H = textsc(TXT,'title') places a title at the top
% of the f... |
github | lcnhappe/happe-master | runica_mlb.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/runica_mlb.m | 42,615 | utf_8 | 84b622d9b09d26c3a20c36f5b695f9b6 | % runica() - Perform Independent Component Analysis (ICA) decomposition
% of input data using the logistic infomax ICA algorithm of
% Bell & Sejnowski (1995) with the natural gradient feature
% of Amari, Cichocki & Yang, or optionally the extended-ICA
% algorithm of Lee, Giro... |
github | lcnhappe/happe-master | eventalign.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/eventalign.m | 1,247 | utf_8 | aae47eaea14a78b572fa7ac4a27e027d | % eventalign - function called by pop_importevent() to find the best
% sampling rate ratio to align 2 arrays of data events.
%
% Author: Arnaud Delorme, SCCN/INC/UCSD, Dec 2003
% Copyright (C) Arnaud Delorme, CNL / Salk Institute, 9 Feb 2002, arno@salk.edu
%
% This program is free software; you can redis... |
github | lcnhappe/happe-master | writecnt.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/writecnt.m | 19,451 | utf_8 | 2103534700b0526bc4c1e243609e91d9 | % writecnt() - Write a Neuroscan continuous signal file.
%
% Usage:
% >> writecnt(filename, CNT-dataset, varargin)
%
% Inputs:
% filename - name of the file with extension
% dataset - name of the CNT-dataset, a structure with the following fields
% cntdataset.header
% cntdata... |
github | lcnhappe/happe-master | topo2sph.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/topo2sph.m | 3,809 | utf_8 | e3c2ecaa32b502b60d330735ade6b95d | % topo2sph() - convert a topoplot() style 2-D polar-coordinate
% channel locations file to a 3-D spherical-angle
% file for use with headplot()
% Usage:
% >> [c h] = topo2sph('eloc_file','eloc_outfile', method, unshrink);
% >> [c h] = topo2sph( topoarray, method, unshrink );
%
% Inputs:
%... |
github | lcnhappe/happe-master | spher.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/spher.m | 365 | utf_8 | 0308dc258a2489d286651ab9504dbea9 | % spher() - return the sphering matrix for given input data
%
% Usage:
%
% >> sphere_matrix = spher(data);
%
% Reference: T. Bell (1996) - - -
%
% S. Makeig CNL / Salk Institute, La Jolla CA 7-17-97
function sphere = spher(data)
if nargin<1 | size(data,1)<1
help spher
return
end
sphere = 2.0*inv(sqrtm(... |
github | lcnhappe/happe-master | copyaxis.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/copyaxis.m | 3,016 | utf_8 | ab1ad1b3dfa8e1a8ff4adaa6b8902625 | % copyaxis() - helper function for axcopy()
%
% Usage: >> copyaxis();
% >> copyaxis( command );
%
% Note: The optional command option (a string that will be evaluated
% when the figure is created allows to customize display).
%
% Author: Tzyy-Ping Jung, SCCN/INC/UCSD, La Jolla, 2000
%
% See also: axcopy(... |
github | lcnhappe/happe-master | eegplot_readkey.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/eegplot_readkey.m | 231 | utf_8 | a65a871257ff3e64f58f29ff2c190071 | % eegplot helper function to read key strokes
function eegplot_readkey(src,evnt)
if strcmp(evnt.Key, 'rightarrow')==1
eegplot('drawp',4);
elseif strcmp(evnt.Key, 'leftarrow')==1
eegplot('drawp',1);
end
|
github | lcnhappe/happe-master | moveaxes.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/moveaxes.m | 2,214 | utf_8 | 91a62b9d7772562c4900a56b35247ae9 | % moveaxes() - move, resize, or copy Matlab axes using the mouse
%
% Usage: >> moveaxes
% >> moveaxes(fig)
% >> moveaxes off
%
% Note: clicking the left mouse button selects an axis
% dragging the left mouse button resizes a selected axis
% dragging the right mouse button copies a selected ax... |
github | lcnhappe/happe-master | parsetxt.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/parsetxt.m | 1,595 | utf_8 | daf4054768bfdb3e9112cbb24966ca21 | % parsetxt() - parse text input into cell array
%
% Usage: >> cellarray = parsetxt( txt, delims );
%
% Inputs:
% txt - input text
% delims - optional char array of delimiters (default: [' ' ',' 9]);
%
% Note: commas, and simple quotes are ignored
%
% Author: Arnaud Delorme, CNL / Salk Institute, 18 April 2002... |
github | lcnhappe/happe-master | coregister.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/coregister.m | 39,331 | utf_8 | 14a6f71096e2d95a1ff015fc16764102 | % coregister() - Co-register measured or template electrode locations with a
% a reference channel locations file. For instance if you
% want to perform dipole modeling you have to coregister
% (align) your channel electrodes with the model (and the
% ea... |
github | lcnhappe/happe-master | transformcoords.m | .m | happe-master/Packages/eeglab14_0_0b/functions/sigprocfunc/transformcoords.m | 4,303 | utf_8 | 5c18fcc7b4908f6238aee6106d85e43c | % transformcoords() - Select nazion and inion in anatomical MRI images.
%
% Usage:
% mewcoords = transformcoords(coords, rotate, scale, center, reverse);
%
% Inputs:
% coords - array of 3-D coordinates (3 by N or N by 3)
% rotate - [pitch roll yaw] rotate in 3-D using pitch (x plane),
% roll ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.