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 | rsadjust.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/timefreqfunc/rsadjust.m | 2,955 | utf_8 | 45d8f416e2d360293ee83cb15f5e3976 | % rsadjust() - adjust l-values (Ramberg-Schmeiser distribution)
% with respect to signal mean and variance
%
% Usage: p = rsadjust(l3, l4, m, var, skew)
%
% Input:
% l3 - value lambda3 for Ramberg-Schmeiser distribution
% l4 - value lambda4 for Ramberg-Schmeiser distribution
% m - mean of t... |
github | lcnbeapp/beapp-master | newcrossf.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/timefreqfunc/newcrossf.m | 63,870 | utf_8 | cb2a530dbabd60d30681d5c293194574 | % newcrossf() - Returns estimates and plots event-related coherence (ERCOH)
% between two input data time series. A lower panel (optionally) shows
% the coherence phase difference between the processes. In this panel:
% In the plot output by > newcrossf(x,y,...);
% 90 degrees (orang... |
github | lcnbeapp/beapp-master | crossf.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/timefreqfunc/crossf.m | 59,295 | utf_8 | 395468032fe3d1abba14d59dfe6d1317 | % crossf() - Returns estimates and plots event-related coherence (ERCOH)
% between two input data time series (X,Y). A lower panel (optionally)
% shows the coherence phase difference between the processes.
% In this panel, output by > crossf(X,Y,...);
% 90 degrees (orange) means X l... |
github | lcnbeapp/beapp-master | dftfilt2.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/timefreqfunc/dftfilt2.m | 5,665 | utf_8 | fa2b4cd1d3a209b72ce506ee4e6fee46 | % dftfilt2() - discrete complex wavelet filters
%
% Usage:
% >> wavelet = dftfilt2( freqs, cycles, srate, cyclefact)
%
% Inputs:
% freqs - frequency array
% cycles - cycles array. If one value is given, all wavelets have
% the same number of cycles. If two values are given, the
% tw... |
github | lcnbeapp/beapp-master | newtimef.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/timefreqfunc/newtimef.m | 97,481 | utf_8 | 9b205e33083e0973b5d9e671eac0abb5 | % newtimef() - Return estimates and plots of mean event-related (log) spectral
% perturbation (ERSP) and inter-trial coherence (ITC) events across
% event-related trials (epochs) of a single input channel time series.
%
% * Also can compute and statistically compare transforms for two time
%... |
github | lcnbeapp/beapp-master | rspdfsolv.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/timefreqfunc/rspdfsolv.m | 2,680 | utf_8 | f54da2906c104216b972ff3b6bbf6f3e | % rspdfsolv() - sub-function used by rsfit() to searc for optimal
% parameter for Ramberg-Schmeiser distribution
%
% Usage: res = rspdfsolv(l, l3, l4)
%
% Input:
% l - [lambda3 lamda4] parameters to optimize
% skew - expected skewness
% kurt - expected kurtosis
%
% Output:
% res - residual
%
%... |
github | lcnbeapp/beapp-master | dftfilt.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/timefreqfunc/dftfilt.m | 2,686 | utf_8 | b950c4302f749a1e9cffcd4c7f4ebe6a | % dftfilt() - discrete Fourier filter
%
% Usage:
% >> b = dftfilt(n,W,c,k,q)
%
% Inputs:
% n - number of input samples
% W - maximum angular freq. relative to n, 0 < W <= .5
% c - cycles
% k - oversampling
% q - [0;1] 0->fft, 1->c cycles
%
% Authors: Sigurd Enghoff, Arnaud Delorme & Scott Makeig,
% ... |
github | lcnbeapp/beapp-master | rspfunc.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/timefreqfunc/rspfunc.m | 1,468 | utf_8 | d6a6d26022ec2e38fa4adca9a28a5dde | % rspfunc() - sub-function used by rsget()
%
% Usage: res = rspfunc(pval, l, rval)
%
% Input:
% pval - p-value to optimize
% l - [l1 l2 l3 l4] l-values for Ramberg-Schmeiser distribution
% rval - expected r-value
%
% Output:
% res - residual
%
% Author: Arnaud Delorme, SCCN, 2003
%
% See also: rsget()
%
% R... |
github | lcnbeapp/beapp-master | correct_mc.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/timefreqfunc/correct_mc.m | 5,698 | utf_8 | 92f18a363d2fec001a50fafbcf9e06b5 | % correct_mc() - compute an upper limit for the number of independant
% time-frequency estimate in a given time-frequency image.
% This number can be used to correct for multiple comparisons.
%
% Usage:
% [ncorrect array] = correct_mc( EEG, cycles, maxfreq, timesout);
%
% Inputs:
% ... |
github | lcnbeapp/beapp-master | pac.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/timefreqfunc/pac.m | 21,849 | utf_8 | a7d13b249d1c873e24a0f43a7cda2c5c | % pac() - compute phase-amplitude coupling (power of first input
% correlation with phase of second). There is no graphical output
% to this function.
%
% Usage:
% >> pac(x,y,srate);
% >> [coh,timesout,freqsout1,freqsout2,cohboot] ...
% = pac(x,y,srate,'key1', 'val1', 'key2', val... |
github | lcnbeapp/beapp-master | bootstat.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/timefreqfunc/bootstat.m | 20,825 | utf_8 | 406a9744b6812cd9f9f1eed16ca63e82 | % bootstat() - accumulate surrogate data to assess significance by permutation of some
% measure of two input variables.
%
% If 'distfit','on', fits the psd with a 4th-order polynomial using the
% data kurtosis, as in Ramberg, J.S., Tadikamalla, P.R., Dudewicz E.J.,
% ... |
github | lcnbeapp/beapp-master | timefreq.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/timefreqfunc/timefreq.m | 33,427 | utf_8 | dc70f7b5afd51d05bcf926a934072865 | % timefreq() - compute time/frequency decomposition of data trials. This
% function is a compute-only function called by
% the more complete time/frequency functions newtimef()
% and newcrossf() which also plot timefreq() results.
%
% Usage:
% >> [tf, freqs, times] =... |
github | lcnbeapp/beapp-master | pac_cont.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/timefreqfunc/pac_cont.m | 17,447 | utf_8 | 9b94d431be58419e3715e54645687469 | % pac_cont() - compute phase-amplitude coupling (power of first input
% correlation with phase of second). There is no graphical output
% to this function.
%
% Usage:
% >> pac_cont(x,y,srate);
% >> [pac timesout pvals] = pac_cont(x,y,srate,'key1', 'val1', 'key2', val2' ...);
%
% Inputs:
% x ... |
github | lcnbeapp/beapp-master | dftfilt3.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/timefreqfunc/dftfilt3.m | 7,390 | utf_8 | 7ef2a5114ee38513d5a55a8f38553cb1 | % dftfilt3() - discrete complex wavelet filters
%
% Usage:
% >> [wavelet,cycles,freqresol,timeresol] = dftfilt3( freqs, cycles, srate, varargin)
%
% Inputs:
% freqs - vector of frequencies of interest.
% cycles - cycles array. If cycles=0, then the Hanning tapered Short-term FFT is used.
% If o... |
github | lcnbeapp/beapp-master | rsget.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/timefreqfunc/rsget.m | 1,800 | utf_8 | 47daf6498859ced84787d07802f22789 | % rsget() - get the p-value for a given collection of l-values
% (Ramberg-Schmeiser distribution)
%
% Usage: p = getfit(l, val)
%
% Input:
% l - [l1 l2 l3 l4] l-values for Ramberg-Schmeiser distribution
% val - value in the distribution to get a p-value estimate at
%
% Output:
% p - p-value
%
% Aut... |
github | lcnbeapp/beapp-master | rsfit.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/timefreqfunc/rsfit.m | 6,481 | utf_8 | ea9ce35750ccb745a5f9471fc6554a91 | % rsfit() - find p value for a given value in a given distribution
% using Ramberg-Schmeiser distribution
%
% Usage: >> p = rsfit(x, val)
% >> [p c l chi2] = rsfit(x, val, plot)
%
% Input:
% x - [float array] accumulation values
% val - [float] value to test
% plot - [0|1|2] plot fit. Using... |
github | lcnbeapp/beapp-master | timewarp.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/timefreqfunc/timewarp.m | 3,452 | utf_8 | 910bc9b6a9fca6b6a50908d815239dc6 | % timewarp() - Given two event marker vectors, computes a matrix
% that can be used to warp a time series so that its
% evlatencies match newlatencies. Values of the warped
% timeserie that falls between two frames in the original
% timeserie will be linear ... |
github | lcnbeapp/beapp-master | angtimewarp.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/timefreqfunc/angtimewarp.m | 4,683 | utf_8 | f46e870ae5d7873544a08ffa9a4ff38b | % angtimewarp() - Given two event marker vectors, computes a
% warping of the input angular time series so that its
% evlatencies match newlatencies. Values of the warped
% timeserie that falls between two frames in the original
% timeserie will be linearl... |
github | lcnbeapp/beapp-master | shortread.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/shortread.m | 2,642 | utf_8 | 7efadd1fb9c9395f1cd3c917e6a93675 | % shortread() - Read matrix from short file.
%
% Usage:
% >> A = shortread(filename,size,'format',offset)
%
% Inputs:
% filename - Read matrix a from specified file while assuming four byte
% short integers.
% size - The vector SIZE determine the number of short elements to be
% read... |
github | lcnbeapp/beapp-master | scanfold.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/scanfold.m | 2,396 | utf_8 | fc03538051488f1358961f46484d958d | % scanfold() - scan folder content
%
% Usage:
% >> [cellres textres] = scanfold(foldname);
% >> [cellres textres] = scanfold(foldname, ignorelist, maxdepth);
%
% Inputs:
% foldname - [string] name of the folder
% ignorelist - [cell] list of folders to ignore
% maxdepth - [integer] maximum folder dep... |
github | lcnbeapp/beapp-master | datlim.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/datlim.m | 641 | utf_8 | f4c0160c492f5049e9dbcc932cafe0e7 | % datlim() - return min and max of a matrix
%
% Usage:
% >> limits_vector = datlim(data);
%
% Input:
% data - numeric array
% Outputs:
% limits_vector = [minval maxval]
%
% Author: Scott Makeig, SCCN/INC/UCSD, May 28, 2005
function [limits_vector] = datlim(data)
if ~isnumeric(data)
erro... |
github | lcnbeapp/beapp-master | lapplot.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/lapplot.m | 4,148 | utf_8 | bbfb726aee519b4b7b446c516439e24f | % lapplot() - Compute the discrete laplacian of EEG scalp distribution(s)
%
% Usage:
% >> laplace = lapplot(map,eloc_file,draw)
%
% Inputs:
% map - Activity levels, size (nelectrodes,nmaps)
% eloc_file - Electrode location filename (.loc file)
% For format, see >> topo... |
github | lcnbeapp/beapp-master | compmap.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/compmap.m | 9,132 | utf_8 | 91717f8d02db6c0193adc7ece08828ca | % compmap() - Plot multiple topoplot() maps of ICA component topographies
% Click on an individual map to view separately.
% Usage:
% >> compmap (winv,'eloc_file',compnos,'title',rowscols,labels,printflag)
%
% Inputs:
% winv - Inverse weight matrix = EEG scalp maps. Each column is a
% ... |
github | lcnbeapp/beapp-master | topoimage.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/topoimage.m | 21,312 | utf_8 | 952b9066313797fa812f1352f2586565 | % topoimage() - plot concatenated multichannel time/frequency images
% in a topographic format
% Uses a channel location file with the same format as topoplot()
% or else plots data on a rectangular grid of axes.
% Click on individual images to examine separatel... |
github | lcnbeapp/beapp-master | getallmenuseeglab.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/getallmenuseeglab.m | 3,609 | utf_8 | 3f20087025ca923857b9ce9ec4553255 | % getallmenuseeglab() - get all submenus of a window or a menu and return
% a tree. The function will also look for callback.
%
% Usage:
% >> [tree nb] = getallmenuseeglab( handler );
%
% Inputs:
% handler - handler of the window or of a menu
%
% Outputs:
% tree - text output
% nb ... |
github | lcnbeapp/beapp-master | loglike.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/loglike.m | 1,238 | utf_8 | b9a8aa64d20e0fc72257880d837f9f19 | % loglike() - log likehood function to estimate dependence between components
%
% Usage: f = loglike(W, S);
%
% Computation of the log-likelihood function under the model
% that the ICs are 1/cosh(s) distributed (according to the tanh
% nonlinearity in ICA). It does not exactly match for the logistic
% nonlinearity, b... |
github | lcnbeapp/beapp-master | corrimage.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/corrimage.m | 25,394 | utf_8 | aaddb89d7d26c507e8075ec38d644f0a | % corrimage() - compute correlation image between an event and amplitude
% and phase in the time-frequency domain.
%
% Usage:
% corrimage(data, sortvar, times);
% [times, freqs, alpha, sigout, limits ] = corrimage(data, sortvar, ...
% times, 'key1', val1, 'key2'... |
github | lcnbeapp/beapp-master | dendhier.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/dendhier.m | 1,290 | utf_8 | 4ad99782a7d86d471c4ce68b9a0dbf1e | % DENDHIER: Recursive algorithm to find links and distance coordinates on a
% dendrogram, given the topology matrix.
%
% Usage: [links,topology,node] = dendhier(links,topology,node)
%
% links = 4-col matrix of descendants, ancestors, descendant
% distances, and ancest... |
github | lcnbeapp/beapp-master | runicalowmem.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/runicalowmem.m | 62,951 | utf_8 | ae726ddb4771edbac5539b0c00cf3fb9 | % 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, G... |
github | lcnbeapp/beapp-master | eeg_time2prev.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/eeg_time2prev.m | 6,514 | utf_8 | b09492c5bf451c4d42c06b87dc8921af | % eeg_time2prev() - returns a vector giving, for each event of specified ("target") type(s),
% the delay (in ms) since the preceding event (if any) of specified
% ("previous") type(s). Requires the EEG.urevent structure, plus
% EEG.event().urevent pointers to it.... |
github | lcnbeapp/beapp-master | helpforexe.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/helpforexe.m | 2,556 | utf_8 | dc086adf5a27490f1a3e39f6d218bbd1 | % helpforexe() - Write help files for exe version
%
% Usage:
% histtoexe( mfile, folder)
%
% Inputs:
% mfile - [cell of string] Matlab files with help message
% folder - [string] Output folder
%
% Output:
% text files name help_"mfile".m
%
% Author: Arnaud Delorme, 2006
%
% See also: eeglab()
% Copyright (C)... |
github | lcnbeapp/beapp-master | imagesclogy.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/imagesclogy.m | 3,685 | utf_8 | 73cfa531e2316e4148fec6793f6f8646 | % imagesclogy() - make an imagesc(0) plot with log y-axis values (ala semilogy())
%
% Usage: >> imagesclogy(times,freqs,data);
% Usage: >> imagesclogy(times,freqs,data,clim,xticks,yticks,'key','val',...);
%
% Inputs:
% times = vector of x-axis values
% freqs = vector of y-axis values (LOG spaced)
% data = matr... |
github | lcnbeapp/beapp-master | gauss.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/gauss.m | 431 | utf_8 | ac68a4b38603e75bbb97ab7770117c1c | % gauss() - return a smooth Gaussian window
%
% Usage:
% >> outvector = gauss(frames,sds);
%
% Inputs:
% frames = window length
% sds = number of +/-std. deviations = steepness
% (~0+ -> flat; >>10 -> spike)
function outvec = gauss(frames,sds)
outvec = [];
if nargin < 2
help gauss
return
end
... |
github | lcnbeapp/beapp-master | runpca2.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/runpca2.m | 2,347 | utf_8 | bec4863264e507c374a64d5ecbfe4132 | % runpca() - perform principal component analysis (PCA) using singular value
% decomposition (SVD) using Matlab svd() or svds()
% >> inv(eigvec)*data = pc;
% Usage:
% >> [pc,eigvec,sv] = runpca(data);
% >> [pc,eigvec,sv] = runpca(data,num,norm)
%
% Inputs:
% data - input d... |
github | lcnbeapp/beapp-master | loc_subsets.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/loc_subsets.m | 8,435 | utf_8 | 0d9bef14db75412fc13a4088966c510a | % loc_subsets() - Separate channels into maximally evenly-spaced subsets.
% This is achieved by exchanging channels between subsets so as to
% increase the sum of average of distances within each channel subset.
% Usage:
% >> subset = loc_subsets(chanlocs, nchans); % select an eve... |
github | lcnbeapp/beapp-master | pcexpand.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/pcexpand.m | 2,209 | utf_8 | 2e520d826d0abe34ee1356fd8766e594 | % pcexpand() - expand data using Principal Component Analysis (PCA)
% returns data expanded from a principal component subspace
% [compare pcsquash()]
% Usage:
% After >> [eigenvectors,eigenvalues,projections] = pcsquash(data,ncomps);
% then >> [expanded_data... |
github | lcnbeapp/beapp-master | detectmalware.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/detectmalware.m | 1,726 | utf_8 | 805aa37c62f2d84ecb6d36df2499d684 | % this function detects potential malware in the current folder and subfolders
%
% Author: A. Delorme, Cotober 2013
function detectmalware(currentFolder);
if nargin < 1
currentFolder = pwd;
end;
folderContent = dir(currentFolder);
folderContent = { folderContent.name };
malwareStrings = { 'eval(' 'evalin(' 'eva... |
github | lcnbeapp/beapp-master | loadelec.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/loadelec.m | 2,360 | utf_8 | 655d4fbe32be8c99d9d4a2f4deb754a6 | % loadelec() - Load electrode names file for eegplot()
%
% Usage: >> labelmatrix = loadelec('elec_file');
%
% Author: Colin Humprhies, CNL / Salk Institute, 1996
%
% See also: eegplot()
% Copyright (C) Colin Humphries, CNL / Salk Institute, Aug, 1996
%
% This program is free software; you can redistribute it and/or m... |
github | lcnbeapp/beapp-master | erpregout.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/erpregout.m | 3,083 | utf_8 | a7430431f9ce614aaa04b826032bfcd5 | % erpregout() - regress out the ERP from the data
%
% Usage:
% newdata = erpregout(data);
% [newdata erp factors] = erpregout(data, tlim, reglim);
%
% Inputs:
% data - [float] 2-D data (times x trials) or 3-D data
% (channels x times x trials).
%
% Optional inputs:
% tlim - [min max] time limi... |
github | lcnbeapp/beapp-master | compdsp.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/compdsp.m | 7,154 | utf_8 | d81cd429eda825751f36ef7706ea02bc | % compdsp() - Display standard info figures for a data decomposition
% Creates four figure windows showing: Component amplitudes,
% scalp maps, activations and activation spectra.
% Usage:
% >> compdsp(data,weights,locfile,[srate],[title],[compnums],[amps],[act]);
%
% Inputs:
% data =... |
github | lcnbeapp/beapp-master | perminv.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/perminv.m | 1,386 | utf_8 | d5fe91da3ab79a692c0adbd6b4a9498a | % perminv() - returns the inverse permutation vector
%
% Usage: >> [invvec] = perminverse(vector);
%
% Author: Scott Makeig, SCCN/INC/UCSD, La Jolla, 11-30-96
% Copyright (C) 11-30-96 Scott Makeig, SCCN/INC/UCSD, scott@sccn.ucsd.edu
%
% This program is free software; you can redistribute it and/or modify
% it under t... |
github | lcnbeapp/beapp-master | runicatest.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/runicatest.m | 40,794 | utf_8 | 39e884850dab339c9c4e2a052d4cf934 | % runicatest() - Perform Independent Component Analysis (ICA) decomposition
% using natural-gradient infomax - the infomax ICA algorithm of
% Bell & Sejnowski (1995) with the natural gradient method
% of Amari, Cichocki & Yang, the extended-ICA algorithm
% of Lee, Girolami... |
github | lcnbeapp/beapp-master | headmovie.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/headmovie.m | 8,690 | utf_8 | 38629f7b7a3e0c3097687e8c0aaf3250 | % ########## This function is deprecated. Use eegmovie instead. ##########
%
% headmovie() - Record a Matlab movie of scalp data.
% Use seemovie() to display the movie.
%
% Usage: >> [Movie,Colormap] = headmovie(data,elec_loc,spline_file);
% >> [Movie,Colormap,minc,maxc] = headmovie(data,elec_lo... |
github | lcnbeapp/beapp-master | arrow.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/arrow.m | 51,888 | utf_8 | 6310afbf5a0ed2b3cfdc0469d9b0c9cd |
% arrow() - Draw a line with an arrowhead.
%
% Usage:
% >> arrow('Property1',PropVal1,'Property2',PropVal2,...)
% >> arrow(H,'Prop1',PropVal1,...)
% >> arrow(Start,Stop)
% >> arrow(Start,Stop,Length,BaseAngle,TipAngle,Width,Page,CrossDir)
% >> arrow demo %2-D demos of the capabilities of arrow()
% >> arrow demo... |
github | lcnbeapp/beapp-master | runpca.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/runpca.m | 2,702 | utf_8 | 6fff3a9e04e75993c00583d5969ea9ec | % runpca() - perform principal component analysis (PCA) using singular value
% decomposition (SVD) using Matlab svd() or svds()
% >> inv(eigvec)*data = pc;
% Usage:
% >> [pc,eigvec,sv] = runpca(data);
% >> [pc,eigvec,sv] = runpca(data,num,norm)
%
% Inputs:
% data - input d... |
github | lcnbeapp/beapp-master | dendplot.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/dendplot.m | 2,407 | utf_8 | b7fd4f2ab62ff9c468fbca95378a2da7 | % DENDPLOT: Plots a dendrogram given a topology matrix.
%
% Usage: dendplot(topology,{labels},{fontsize})
%
% topology = [(n-1) x 4] matrix summarizing dendrogram topology:
% col 1 = 1st OTU/cluster being grouped at current step
% col 2 = 2nd OTU/cluster
% ... |
github | lcnbeapp/beapp-master | qrtimax.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/qrtimax.m | 4,605 | utf_8 | 64e79c295baa267e2aacf1bcca2c6769 | % qrtimax() - perform Quartimax rotation of rows of a data matrix.
%
% Usage: >> [Q,B] = qrtimax(data);
% >> [Q,B] = qrtimax(data,tol,'[no]reorder');
%
% Inputs:
% data - input matrix
% tol - the termination tolerance {default: 1e-4}
% noreorder - rotate without negation/reord... |
github | lcnbeapp/beapp-master | matcorr.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/matcorr.m | 5,853 | utf_8 | d0e3089eda2df7656eb20c1f476894f8 | % matcorr() - Find matching rows in two matrices and their corrs.
% Uses the Hungarian (default), VAM, or maxcorr assignment methods.
% (Follow with matperm() to permute and sign x -> y).
%
% Usage: >> [corr,indx,indy,corrs] = matcorr(x,y,rmmean,method,weighting);
%
% Inputs:
% x = first i... |
github | lcnbeapp/beapp-master | seemovie.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/seemovie.m | 2,366 | utf_8 | e435662809faced2ec20372ec434b114 | % seemovie() - see an EEG movie produced by eegmovie()
%
% Usage: >> seemovie(Movie,ntimes,Colormap)
%
% Inputs:
% Movie = Movie matrix returned by eegmovie()
% ntimes = Number of times to display {0 -> -10}
% If ntimes < 0, movie will play forward|backward
% Colormap = C... |
github | lcnbeapp/beapp-master | abspeak.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/abspeak.m | 2,026 | utf_8 | 2258e70a7386f00bc23dd3f8620aa48b | % abspeak() - find peak amps/latencies in each row of a single-epoch data matrix
%
% Usage:
% >> [amps,frames,signs] = abspeak(data);
% >> [amps,frames,signs] = abspeak(data,frames);
%
% Inputs:
% data - single-epoch data matrix
% frames - frames per epoch in data {default|0 -> whole data}
%
% Outp... |
github | lcnbeapp/beapp-master | eegplotgold.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/eegplotgold.m | 12,958 | utf_8 | d4c4acff7303a59ede1e32c3911c3af7 | % eegplotgold() - display EEG data in a clinical format
%
% Usage:
% >> eegplotgold('dataname', samplerate, 'chanfile', 'title', yscaling, range)
%
% Inputs:
% 'dataname' - quoted name of a desktop global variable (see Ex. below)
% samplerate - EEG sampling rate in Hz (0 -> default 256 Hz)
% 'chanfile' - file of ... |
github | lcnbeapp/beapp-master | makehelpfiles.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/makehelpfiles.m | 4,318 | utf_8 | 8a0860d1b106b9754aedcaed8ace4442 | % makehelpfiles() - generate function help pages
%
% Usage:
% >> makehelpfiles(list);
%
% Input:
% 'folder' - [string] folder name to process
% 'outputfile' - [string] file in which to write the help
% 'title' - [string] title for the help
%
% Author: Arnaud Delorme, UCSD, 2013
%
% Example: Generate ... |
github | lcnbeapp/beapp-master | gauss2d.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/gauss2d.m | 2,336 | utf_8 | eb62296c929c63d59753f67dac83f70d | % gauss2d() - generate a 2-dimensional gaussian matrix
%
% Usage:
% >> [ gaussmatrix ] = gauss2d( rows, columns, ...
% sigmaR, sigmaC, peakR, peakC, mask)
%
% Example:
% >> imagesc(gauss2d(50, 50)); % image a size (50,50) 2-D gaussian matrix
%
% Inputs:
% rows - number of rows in m... |
github | lcnbeapp/beapp-master | logimagesc.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/logimagesc.m | 3,574 | utf_8 | 343cd485721e4ef9c77204704ae0180c | % logimagesc() - make an imagesc(0) plot with log y-axis values (ala semilogy())
%
% Usage: >> [logfreqs,dataout] = logimagesc(times,freqs,data);
%
% Input:
% times = vector of x-axis values
% freqs = vector of y-axis values
% data = matrix of size (freqs,times)
%
% Optional Input:
% plot = ['on'|'off'] plot ... |
github | lcnbeapp/beapp-master | eucl.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/eucl.m | 4,052 | utf_8 | d05e24c412ee9044fefe12a801a4f9aa | % EUCL: Calculates the euclidean distances among a set of points, or between a
% reference point and a set of points, or among all possible pairs of two
% sets of points, in P dimensions. Returns a single distance for two points.
%
% Syntax: dists = eucl(crds1,crds2)
%
% crds1 = [N1 x P] matrix... |
github | lcnbeapp/beapp-master | uniquef.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/uniquef.m | 2,819 | utf_8 | 81584771d690f2251ea088c5ccfebb54 | % UNIQUEF: Given a matrix containing group labels, returns a vector containing
% a list of unique group labels, in the sequence found, and a
% vector of corresponding frequencies of each group.
% Optionally sorts the indices into ascending sequence.
%
% Note: it might be necessary to... |
github | lcnbeapp/beapp-master | getipsph.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/getipsph.m | 2,850 | utf_8 | d0e227ab4596c6de73b76d9f3bd83f99 | % getipsph() - Compute "in place" (m by n) sphering or quasi-sphering matrix for an (n by t)
% input data matrix. Quasi-sphering reduces dimensionality of the data, while
% maintaining approximately the "original" positions of the axes. That is,
% quasi-sphering "rotates back" a... |
github | lcnbeapp/beapp-master | gauss3d.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/gauss3d.m | 2,601 | utf_8 | 8b9e654379dccd6f84b0036766f86da3 | % gauss3d() - generate a 3-dimensional gaussian matrix
%
% Usage:
% >> [ gaussmatrix ] = gauss2d( nX, nY, nZ);
% >> [ gaussmatrix ] = gauss2d( nX, nY, nZ, ...
% sigmaX, sigmaY, sigmaZ, ...
% centerX, centerY, centerZ, mask)
%
% Example:
% >> gauss3d(3,3,3)... |
github | lcnbeapp/beapp-master | means.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/means.m | 2,133 | utf_8 | 9692b1df9d31cb08b359424b637cfeff | % MEANS: Means, standard errors and variances. For column vectors, means(x)
% returns the mean value. For matrices or row vectors, means(x) is a
% row vector containing the mean value of each column. The basic
% difference from the Matlab functions mean() and var() is for a row vector,
%... |
github | lcnbeapp/beapp-master | eegdrawg.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/eegdrawg.m | 3,602 | utf_8 | 5bf94e46002cff31e2f4befee9f9d78f | % eegdrawg() - subroutine used by eegplotgold() to plot data.
%
% Author: Colin Humphries, CNL, Salk Institute, La Jolla, 7/96
% Copyright (C) Colin Humphries, CNL, Salk Institute 7/96 from eegplot()
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public... |
github | lcnbeapp/beapp-master | averef.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/averef.m | 2,628 | utf_8 | a00dedfa26c8a0304625f45a9689b499 | % averef() - convert common-reference EEG data to average reference
% Note that this old function is not being used in EEGLAB. The
% function used by EEGLAB is reref().
%
% Usage:
% >> data = averef(data);
% >> [data_out W_out S_out meandata] = averef(data,W);
%
% Inputs:
% data - 2D data ma... |
github | lcnbeapp/beapp-master | laplac2d.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/laplac2d.m | 2,365 | utf_8 | 1b371aaa27a868a1cba1dfb75b3ed92d | % laplac2d() - generate a 2 dimensional gaussian matrice
%
% Usage :
% >> [ gaussmatrix ] = laplac2d( rows, columns, sigma, ...
% meanR, meanC, cut)
%
% Example :
% >> laplac2d( 5, 5)
%
% Inputs:
% rows - number of rows
% columns - number of columns
% sigma - stan... |
github | lcnbeapp/beapp-master | varsort.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/varsort.m | 3,451 | utf_8 | f28836747df60204b4cb5eba5a4f1810 | % varsort() - reorder ICA components, largest to smallest, by
% the size of their MEAN projected variance
% across all time points
% Usage:
% >> [windex,meanvar] = varsort(activations,weights,sphere);
%
% Inputs:
% activations = (chans,framestot) the runica() activations
% weights = ... |
github | lcnbeapp/beapp-master | eegdraw.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/eegdraw.m | 3,816 | utf_8 | 8cf02a8c097d9de09a6aa145d4bfba65 | % eegdraw() - subroutine used by eegplotold() to plot data.
%
% Author: Colin Humphries, CNL, Salk Institute, La Jolla, 7/96
% Copyright (C) Colin Humphries, CNL, Salk Institute 7/96 from eegplot()
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public L... |
github | lcnbeapp/beapp-master | eegmovie.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/eegmovie.m | 10,994 | utf_8 | e8d4266027ffe169448945aed8f2b937 | % eegmovie() - Compile and view a Matlab movie.
% Uses scripts eegplotold() and topoplot().
% Use seemovie() to display the movie.
% Usage:
% >> [Movie,Colormap] = eegmovie(data,srate,elec_locs, 'key', val, ...);
%
% Or legacy call
% >> [Movie,Colormap] = eegmovie(data,srate,elec_locs,title,m... |
github | lcnbeapp/beapp-master | gabor2d.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/gabor2d.m | 3,449 | utf_8 | 669aa44c02685a4e73e5568196a23efb | % gabor2d() - generate a two-dimensional gabor matrice.
%
% Usage:
% >> [ matrix ] = gabor2d(rows, columns);
% >> [ matrix ] = gabor2d( rows, columns, freq, ...
% angle, sigmaR, sigmaC, meanR, meanC, dephase, cut)
% Example :
% >> imagesc(gabor2d( 50, 50))
%
% Inputs:
% rows - n... |
github | lcnbeapp/beapp-master | makehtml.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/makehtml.m | 13,268 | utf_8 | ab43eb5b6d347b47f14edde57f938911 | % makehtml() - generate .html function-index page and function help pages
% composed automatically from formatted Matlab function help messages
%
% Usage:
% >> makehtml(list, outputdir);
% >> makehtml(list, outputdir, 'key1', val1, 'key2', val2, ...);
%
% Input:
% list - (1) List (cell arra... |
github | lcnbeapp/beapp-master | covary.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/covary.m | 1,482 | utf_8 | be5b9b3870c8f6344a4441160ea51bf0 | % covary() - For vectors, covary(X) returns the variance of X.
% For matrices, covary(X)is a row vector containing the
% variance of each column of X.
%
% Notes:
% covary(X) normalizes by N-1 where N is the sequence length.
% This makes covary(X) the best unbiased estimate of th... |
github | lcnbeapp/beapp-master | convolve.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/convolve.m | 1,721 | utf_8 | 9bced09132932ed26fd7caf0d6d760f7 | % convolve() - convolve two matrices (normalize by the sum of convolved
% elements to compensate for border effects).
%
% Usage:
% >> r = convolve( a, b );
%
% Inputs:
% a - first input vector
% b - second input vector
%
% Outputs:
% r - result of the convolution
%
% Aut... |
github | lcnbeapp/beapp-master | textgui.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/textgui.m | 6,446 | utf_8 | d4e6f305686806a2d18faf7a89d49999 | % textgui() - make sliding vertical window. This window contain text
% with optional function calls at each line.
%
% Usage:
% >> textgui( commandnames, helparray, 'key', 'val' ...);
%
% Inputs:
% commandnames - name of the commands. Either char array or cell
% array of char. All style ... |
github | lcnbeapp/beapp-master | kmeans_st.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/kmeans_st.m | 8,156 | utf_8 | 8dec33b3e9581d7f84c4deb47caa720d | % KMEANS: K-means clustering of n points into k clusters so that the
% within-cluster sum of squares is minimized. Based on Algorithm
% AS136, which seeks a local optimum such that no movement of a
% point from one cluster to another will reduced the within-cluster
% sum of squares. Te... |
github | lcnbeapp/beapp-master | caliper.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/caliper.m | 6,421 | utf_8 | a3602aa087935fa1182c2455a6e8d7ef | % caliper() - Measure a set of spatial components of a given data epoch relative to
% a reference epoch and decomposition.
% Usage:
% >> [amp,window]=caliper(newepoch,refepoch,weights,compnums,filtnums,times,'noplot');
%
% Inputs:
% newepoch = (nchannels,ntimes) new data epoch
% refepoch = a (nch... |
github | lcnbeapp/beapp-master | help2html2.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/help2html2.m | 16,616 | utf_8 | 0b84a93365f77c167a0f2096b04d0f30 | % help2html() - Convert a Matlab m-file help-message header into an .html help file
%
% Usage:
% >> linktext = help2html( filein, fileout, 'key1', val1, 'key2', val2 ...);
%
% Inputs:
% filein - input filename (with .m extension)
% fileout - output filename (if empty, generated automatically)
%
% Opti... |
github | lcnbeapp/beapp-master | getallmenus.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/getallmenus.m | 2,254 | utf_8 | 757fe9c0de1f75dd78ee6012bb2c3ddf | % getallmenus() - get all submenus of a window or a menu and return
% a tree.
%
% Usage:
% >> [tree nb] = getallmenus( handler );
%
% Inputs:
% handler - handler of the window or of a menu
%
% Outputs:
% tree - text output
% nb - number of elements in the tree
%
% Author: Arnau... |
github | lcnbeapp/beapp-master | eeg_regepochs.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/eeg_regepochs.m | 6,723 | utf_8 | 68a8bef2b1f7b22c806d132a4c322cc6 | % eeg_regepochs() - Convert a continuous dataset into consecutive epochs of
% a specified regular length by adding dummy events of type
% and epoch the data around these events. Alternatively
% only insert events for extracting these epochs.
% Ma... |
github | lcnbeapp/beapp-master | eegplotold.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/eegplotold.m | 33,034 | utf_8 | f08480f9c8c3fcde09afda52f574a1f3 | % eegplotold() - display data in a horizontal scrolling fashion
% with (optional) gui controls (version 2.3)
% Usage:
% >> eegplotold(data,srate,spacing,eloc_file,windowlength,title)
% >> eegplotold('noui',data,srate,spacing,eloc_file,startpoint,color)
%
% Inputs:
% data - Input data matr... |
github | lcnbeapp/beapp-master | chanproj.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/chanproj.m | 7,033 | utf_8 | 3944e3a2db15df4da52766d602a832d0 | % chanproj() - make a detailed plot of data returned from plotproj()
% for given channel. Returns the data plotted.
% Usage:
% >> [chandata] = chanproj(projdata,chan);
% >> [chandata] = chanproj(projdata,chan,ncomps,framelist,limits,title,colors);
%
% Inputs:
% projdata = data returned from plotpro... |
github | lcnbeapp/beapp-master | zica.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/zica.m | 3,366 | utf_8 | 0daa4d2de301c49787f0d7e9e070ffb9 | % zica() - Z-transform of ICA activations; useful for studying component SNR
%
% Usage: >> [zact,basesd,maz,mazc,mazf] = zica(activations,frames,baseframes)
%
% Inputs:
% activations - activations matrix produced by runica()
% frames - frames per epoch {0|default -> length(activations)}
% baseframes - vect... |
github | lcnbeapp/beapp-master | rotatematlab.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/rotatematlab.m | 180 | utf_8 | 1d0c90aba89a0dd6de52d0081b4ad3dd | % This function calls the Matlab rotate function
% This prevents the issue with the function in the private folder of Dipfit
function rotatematlab(varargin)
rotate(varargin{:});
|
github | lcnbeapp/beapp-master | del2map.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/del2map.m | 3,940 | utf_8 | 0e518801cfa22cd909a1faa406f9cf7d | % del2map() - compute the discrete laplacian of an EEG distribution.
%
% Usage:
% >> [ laplac ] = del2map( map, filename, draw );
%
% Inputs:
% map - level of activity (size: nbChannel)
% filename - filename (.loc file) countaining the coordinates
% of the electrodes, or array countaining c... |
github | lcnbeapp/beapp-master | readlocsold.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/readlocsold.m | 3,560 | utf_8 | 55da540b1b04dfe07379075941625ac1 | % readlocsold() - Read electrode locations file in style of topoplot() or headplot().
% Output channel information is ordered by channel numbers.
%
% Usage: >> [nums labels th r x y] = readlocsold(locfile);% {default, polar 2-D}
% >> [nums labels th r x y] = readlocsold(locfile,'polar'); % 2-D
%... |
github | lcnbeapp/beapp-master | crossfreq.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/crossfreq.m | 15,218 | utf_8 | a9ff87c9098280c7729af6c878a8fd45 | % crossfreq() - compute cross-frequency coherences. Power of first input
% correlation with phase of second.
%
% Usage:
% >> crossfreq(x,y,srate);
% >> [coh,timesout,freqsout1,freqsout2,cohboot] ...
% = crossfreq(x,y,srate,'key1', 'val1', 'key2', val2' ...);
% Inputs:
% x ... |
github | lcnbeapp/beapp-master | upgma.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/upgma.m | 3,664 | utf_8 | 2bbad43f658a73df320ccccb6256d938 | % UPGMA: Unweighted pair-group hierarchical cluster analysis of a distance
% matrix. Produces plot of dendrogram. To bootstrap cluster support,
% see cluster().
%
% Usage: [topology,support] = upgma(dist,{labels},{doplot},{fontsize})
%
% dist = [n x n] symmetric distance matrix.
% ... |
github | lcnbeapp/beapp-master | mapcorr.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/mapcorr.m | 6,842 | utf_8 | 4dc2783fce24c7d3b647bb2d2cac4436 | % mapcorr() - Find matching rows in two matrices and their corrs.
% Uses the Hungarian (default), VAM, or maxcorr assignment methods.
% (Follow with matperm() to permute and sign x -> y).
%
% Finds correlation of maximum common subset of channels (using
% channel location... |
github | lcnbeapp/beapp-master | uniqe_cell_string.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/uniqe_cell_string.m | 637 | utf_8 | 4db73f96310fef763282d550920e9d65 | function uniqueStrings = uniqe_cell_string(c)
% uniqe string from a cell-array containing only strings, ignores all
% non-strings.
nonStringCells = [];
for i=1:length(c) % remove non-string cells
if ~strcmp(class(c{i}),'char')
nonStringCells = [nonStringCells i];
end;
end;
c(nonStringCells) = [];
uniq... |
github | lcnbeapp/beapp-master | make_timewarp.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/make_timewarp.m | 9,686 | utf_8 | 248333ed7e02db8061c3f52067e368ff | % make_timewarp() - Select a subset of epochs containing a given event sequence, and return
% a matrix of latencies for time warping the selected epochs to a common
% timebase in newtimef(). Events in the given sequence may be further
% restricted to those with s... |
github | lcnbeapp/beapp-master | fieldtrip2eeglab.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/fieldtrip2eeglab.m | 1,269 | utf_8 | 442a73a6c0d6090b20bc0444bad3aba7 | % load data file ('dataf') preprocessed with fieldtrip
% and show in eeglab viewer
%
% This function is provided as is. It only works for some specific type of
% data. This is a simple function to help the developer and by no mean
% an all purpose function.
function [EEG] = fieldtrip2eeglab(dataf)
[ALLEEG EEG CURRENT... |
github | lcnbeapp/beapp-master | rmart.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/rmart.m | 6,530 | utf_8 | f8a4b6645ed700ac44e8b0933750ef36 | % rmart() - Remove eye artifacts from EEG data using regression with
% multiple time lags. Each channel is first made mean-zero.
% After JL Kenemans et al., Psychophysiology 28:114-21, 1991.
%
% Usage: >> rmart('datafile','outfile',nchans,chanlist,eogchan,[threshold])
% Example: >> rmart('noisy.... |
github | lcnbeapp/beapp-master | vectdata.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/vectdata.m | 4,693 | utf_8 | e2d5960f3405659d0cdcb6645ef43835 | % vectdata() - vector data interpolation with optional moving
% average.
%
% Usage:
% >> [interparray timesout] = vectdata( array, timesin, 'key', 'val', ... );
%
% Inputs:
% array - 1-D or 2-D float array. If 2-D, the second dimension
% only is interpolated.
% timesin - [floa... |
github | lcnbeapp/beapp-master | matperm.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/matperm.m | 2,919 | utf_8 | 697c96bef1109a7011a0d4781bfbedc3 | % matperm() - transpose and sign rows of x to match y (run after matcorr() )
%
% Usage: >> [permx indperm] = matperm(x,y,indx,indy,corr);
%
% Inputs:
% x = first input matrix
% y = matrix with same number of columns as x
% indx = column containing row indices for x (from matcorr())
% indy = column co... |
github | lcnbeapp/beapp-master | varimax.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/varimax.m | 4,437 | utf_8 | d87cb189d37524e4920c2f9ad9c41aa4 | % varimax() - Perform orthogonal Varimax rotation on rows of a data
% matrix.
%
% Usage: >> V = varimax(data);
% >> [V,rotdata] = varimax(data,tol);
% >> [V,rotdata] = varimax(data,tol,'noreorder')
%
% Inputs:
% data - data matrix
% tol - set the termination tolerance to ... |
github | lcnbeapp/beapp-master | pcsquash.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/pcsquash.m | 2,802 | utf_8 | 9e0a0372b72b09c731ef70785b8ce862 | % pcsquash() - compress data using Principal Component Analysis (PCA)
% into a principal component subspace. To project back
% into the original channel space, use pcexpand()
%
% Usage:
% >> [eigenvectors,eigenvalues] = pcsquash(data,ncomps);
% >> [eigenvectors,eigenvalues,com... |
github | lcnbeapp/beapp-master | nan_std.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/nan_std.m | 1,304 | utf_8 | d53859297282cc1d957ec0f2cc0b3617 | % nan_std() - std, not considering NaN values
%
% Usage: std across the first dimension
% Author: Arnaud Delorme, CNL / Salk Institute, Sept 2003
% Copyright (C) 2003 Arnaud Delorme, Salk Institute, arno@salk.edu
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU ... |
github | lcnbeapp/beapp-master | plotproj.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/plotproj.m | 5,772 | utf_8 | a22a956e9c31d1ee84c4bbb5a663cd53 | % plotproj() - plot projections of one or more ICA components along with
% the original data (returns the data plotted)
%
% Usage:
% >> [projdata] = plotproj(data,weights,compnums);
% >> [projdata] = plotproj(data,weights,compnums, ...
% title,limits,chanlist,channames,... |
github | lcnbeapp/beapp-master | numdim.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/numdim.m | 2,007 | utf_8 | 220904d43bdb749aef158ee0bdef4040 | % numdim() - estimate a lower bound on the (minimum) number of discrete sources
% in the data via their second-order statistics.
% Usage:
% >> num = numdim( data );
%
% Inputs:
% data - 2-D data (nchannel x npoints)
%
% Outputs:
% num - number of sources (estimated from second order measures)
%
%... |
github | lcnbeapp/beapp-master | eeg_ms2f.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/eeg_ms2f.m | 623 | utf_8 | bf8ab362a73704ef273b03319ce179c0 | % eeg_ms2f() - convert epoch latency in ms to nearest epoch frame number
%
% Usage:
% >> outf = eeg_ms2f(EEG,ms);
% Inputs:
% EEG - EEGLAB data set structure
% ms - epoch latency in milliseconds
% Output:
% outf - nearest epoch frame to the specified epoch latency
%
% Author: Scott Make... |
github | lcnbeapp/beapp-master | compsort.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/compsort.m | 8,288 | utf_8 | 43da793b46f111b7671ea6db2e79e699 | % compsort() - reorder ICA components, first largest to smallest by the size
% of their maximum variance in the single-component projections,
% then (if specified) the nlargest component projections are
% reordered by the (within-epoch) time point at which they reach
% ... |
github | lcnbeapp/beapp-master | compheads.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/compheads.m | 6,160 | utf_8 | 96edaf4aa50c50ccb4f752823d03b1d4 | % compheads() - plot multiple topoplot() maps of ICA component topographies
%
% Usage:
% >> compheads(winv,'spline_file',compnos,'title',rowscols,labels,view)
%
% Inputs:
% winv - Inverse weight matrix = EEG scalp maps. Each column is a
% map; the rows correspond to the electrode positions
... |
github | lcnbeapp/beapp-master | logspec.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/logspec.m | 4,318 | utf_8 | 233385ae8dbccb9910ad8e624d8d7244 | % logspec() - plot mean log power spectra of submitted data on loglog scale
% using plotdata() or plottopo() formats
%
% Usage:
% >> [spectra,freqs] = logspec(data,frames,srate);
% >> [spectra,freqs] = logspec(data,frames,srate,'title',...
% [loHz-hiHz],'cha... |
github | lcnbeapp/beapp-master | tftopo.m | .m | beapp-master/Packages/eeglab14_1_2b/functions/miscfunc/tftopo.m | 25,662 | utf_8 | 927788fa42a8c1c1676c74297725af98 | % tftopo() - Generate a figure showing a selected or representative image (e.g.,
% an ERSP, ITC or ERP-image) from a supplied set of images, one for each
% scalp channel. Then, plot topoplot() scalp maps of value distributions
% at specified (time, frequency) image points. Else, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.