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
svndl/mrC-master
errorb.m
.m
mrC-master/tools/plotting/errorb.m
9,494
utf_8
566685d42160b09929f340c72d758dc7
%% Description errorb(x,y,varargin) % errorb(Y,E) plots Y and draws an error bar at each element of Y. The % error bar is a distance of E(i) above and below the curve so that each % bar is symmetric and 2*E(i) long. % If Y and E are a matrices, errob groups the bars produced by the elements % in each row and plots...
github
svndl/mrC-master
format_ticks.m
.m
mrC-master/tools/plotting/format_ticks.m
17,920
utf_8
9451fdec572f520b405113bde2e3fb6c
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% BEGIN HEADER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
github
svndl/mrC-master
distinguishable_colors.m
.m
mrC-master/tools/plotting/distinguishable_colors.m
5,753
utf_8
57960cf5d13cead2f1e291d1288bccb2
function colors = distinguishable_colors(n_colors,bg,func) % DISTINGUISHABLE_COLORS: pick colors that are maximally perceptually distinct % % When plotting a set of lines, you may want to distinguish them by color. % By default, Matlab chooses a small set of colors and cycles among them, % and so if you have more than ...
github
svndl/mrC-master
pdftops.m
.m
mrC-master/tools/plotting/export_fig/pdftops.m
3,068
utf_8
7a40ce10e58d68cd7eeda67992b993f3
function varargout = pdftops(cmd) %PDFTOPS Calls a local pdftops executable with the input command % % Example: % [status result] = pdftops(cmd) % % Attempts to locate a pdftops executable, finally asking the user to % specify the directory pdftops was installed into. The resulting path is % stored for futur...
github
svndl/mrC-master
isolate_axes.m
.m
mrC-master/tools/plotting/export_fig/isolate_axes.m
3,794
utf_8
b104d66dd4d36f35d275c4ef3d2f41cd
%ISOLATE_AXES Isolate the specified axes in a figure on their own % % Examples: % fh = isolate_axes(ah) % fh = isolate_axes(ah, vis) % % This function will create a new figure containing the axes/uipanels % specified, and also their associated legends and colorbars. The objects % specified must all be in th...
github
svndl/mrC-master
pdf2eps.m
.m
mrC-master/tools/plotting/export_fig/pdf2eps.m
1,524
utf_8
037f9109e96ab4385d13019a29db4639
%PDF2EPS Convert a pdf file to eps format using pdftops % % Examples: % pdf2eps source dest % % This function converts a pdf file to eps format. % % This function requires that you have pdftops, from the Xpdf suite of % functions, installed on your system. This can be downloaded from: % http://www.foolabs.c...
github
svndl/mrC-master
print2array.m
.m
mrC-master/tools/plotting/export_fig/print2array.m
6,474
utf_8
4ead930267fe61c9b2a87139ee559dc8
%PRINT2ARRAY Exports a figure to an image array % % Examples: % A = print2array % A = print2array(figure_handle) % A = print2array(figure_handle, resolution) % A = print2array(figure_handle, resolution, renderer) % [A bcol] = print2array(...) % % This function outputs a bitmap image of the given fig...
github
svndl/mrC-master
eps2pdf.m
.m
mrC-master/tools/plotting/export_fig/eps2pdf.m
5,151
utf_8
b356d73460fdebe8ef6fa428d5b2c125
%EPS2PDF Convert an eps file to pdf format using ghostscript % % Examples: % eps2pdf source dest % eps2pdf(source, dest, crop) % eps2pdf(source, dest, crop, append) % eps2pdf(source, dest, crop, append, gray) % eps2pdf(source, dest, crop, append, gray, quality) % % This function converts an eps file...
github
svndl/mrC-master
copyfig.m
.m
mrC-master/tools/plotting/export_fig/copyfig.m
846
utf_8
8f479727f76b878a077b76ca7afed48e
%COPYFIG Create a copy of a figure, without changing the figure % % Examples: % fh_new = copyfig(fh_old) % % This function will create a copy of a figure, but not change the figure, % as copyobj sometimes does, e.g. by changing legends. % % IN: % fh_old - The handle of the figure to be copied. Default: gc...
github
svndl/mrC-master
user_string.m
.m
mrC-master/tools/plotting/export_fig/user_string.m
2,462
utf_8
dd1a7fa5b4f2be6320fc2538737a2f3e
%USER_STRING Get/set a user specific string % % Examples: % string = user_string(string_name) % saved = user_string(string_name, new_string) % % Function to get and set a string in a system or user specific file. This % enables, for example, system specific paths to binaries to be saved. % % IN: % string_name - ...
github
svndl/mrC-master
export_fig.m
.m
mrC-master/tools/plotting/export_fig/export_fig.m
30,376
utf_8
7dab6f956d238b4a8bd6770e3fa948ec
%EXPORT_FIG Exports figures suitable for publication % % Examples: % im = export_fig % [im alpha] = export_fig % export_fig filename % export_fig filename -format1 -format2 % export_fig ... -nocrop % export_fig ... -transparent % export_fig ... -native % export_fig ... -m<val> % export_fig...
github
svndl/mrC-master
ghostscript.m
.m
mrC-master/tools/plotting/export_fig/ghostscript.m
4,650
utf_8
db7a65458702e2333638288011dc0d7e
%GHOSTSCRIPT Calls a local GhostScript executable with the input command % % Example: % [status result] = ghostscript(cmd) % % Attempts to locate a ghostscript executable, finally asking the user to % specify the directory ghostcript was installed into. The resulting path % is stored for future reference. % ...
github
svndl/mrC-master
freezeColors.m
.m
mrC-master/tools/plotting/freezeColors_v23_cbfreeze/freezeColors/freezeColors.m
9,815
utf_8
2068d7a4f7a74d251e2519c4c5c1c171
function freezeColors(varargin) % freezeColors Lock colors of plot, enabling multiple colormaps per figure. (v2.3) % % Problem: There is only one colormap per figure. This function provides % an easy solution when plots using different colomaps are desired % in the same figure. % % freezeColors freeze...
github
svndl/mrC-master
tutorial_filters.m
.m
mrC-master/tools/plotting/plot2svg/tutorial_filters.m
5,669
utf_8
2851aa1347386c724ec5b56aa321f9a6
function tutorial_filters file = 'matterhorn_small.jpg'; fig = figure; set(fig, 'DefaultAxesFontName', 'Arial') set(fig, 'DefaultAxesFontSize', 6) plotCounter = 1; xPlots = 3; yPlots = 4; % a) Original plot with a line, patch, and text object subplot(yPlots, xPlots, plotCounter) plotCounter = plotCounter + 1;...
github
svndl/mrC-master
GE_createSPMmat.m
.m
mrC-master/tools/afni/GE_createSPMmat.m
1,480
utf_8
9da4628d724922838247f14727e25722
%%%%%%%%%%%%%%%%%%%%%%%% % % % Write SPM mat file % % % %%%%%%%%%%%%%%%%%%%%%%%% function M = GE_createSPMmat(im_hdr, scandir) % % Put the appropriate translations and rotations to the M matrix % given the information in the image header and the direction of % acquisition % %...
github
svndl/mrC-master
NewCs.m
.m
mrC-master/tools/afni/NewCs.m
20,018
utf_8
02f4f3b94b14be6adab8ee52224b2dc3
function [cs] = NewCs(Name, win, p1, p2, p3, p4, p5) % % [cs] = NewCs (Name, Con, P1, P2) % %Purpose: % Create a command structure for passing to TellAfni % % %Input Parameters: % Name: Name of command, see AFNI's README.driver for all possibilities % Example: SET_THRESHOLD % To see a list ...
github
svndl/mrC-master
New_HEAD.m
.m
mrC-master/tools/afni/New_HEAD.m
8,432
utf_8
3213a4c8b09f49855cafdf9925e5b3d3
function [err,Info, opt] = New_HEAD (opt) % % [err,Info, Opt] = New_HEAD (Opt) % %Purpose: % A function for the likes of Greg Detre. % It makes the creation of an AFNI dataset % from a 3 or 4 dimensional matrix in matlab a breeze. % % % %Input Parameters: % opt is an options structure with the follow...
github
svndl/mrC-master
PeakFinder.m
.m
mrC-master/tools/afni/PeakFinder.m
13,195
utf_8
de2c65050ed5478fa3986e0148913975
function [R, e] = PeakFinder(vvec, Opt) %Example: PeakFinder('Resp*.1D'); % or PeakFinder(v) where v is a column vector % if v is a matrix, each column is processed separately. % %clear all but vvec (useful if I run this function as as script) keep('vvec', 'Opt'); e = 0; R = struct([]); if (nargin < 2) Opt = struct();...
github
svndl/mrC-master
rgbdectohex.m
.m
mrC-master/tools/afni/rgbdectohex.m
6,704
utf_8
92da7b120cfc35812f4d4986566df4b6
function [Cs, sall] = rgbdectohex (Mrgb,strg, prompt) % % Mode 1: % [Cs, sall] = rgbdectohex (Mrgb,[string]) % Mode 2: % rgbdectohex % Mode 3: % Mrgb = rgbdectohex (sall) % % Mode 1: %This function takes as an input the rgb matrix Mrgb (size is Nx3) % where each row represents the rgb gun values...
github
svndl/mrC-master
afni_niml_writesimple.m
.m
mrC-master/tools/afni/afni_niml_writesimple.m
5,001
utf_8
04e2bbd96874cce4f397da5d5caabcde
function D=afni_niml_writesimple(S,fn) % writes surface data in a 'simple' struct in NIML format to a file. % % D=AFNI_NIML_WRITESIMPLE(fn,S) writes surface data S to the file FN. % S should be a struct with a field S.data, and optionally S.stats, % S.labels, S.history, S.types, and S.node_indices. % This function ret...
github
svndl/mrC-master
afni_talk_defs.m
.m
mrC-master/tools/afni/afni_talk_defs.m
699
utf_8
5d351c91f71b337f0cb3bfacbe9a7bee
% comm = afni_talk_defs() for getting communications defaults % If you have a port offset PO to pass along, use: % comm = afni_talk_defs(comm, PO); function [comm] = afni_talk_defs(comm, np) comm.con = -1; comm.sockcon = -1; if (nargin > 1), com = sprintf('suma -npq %d -port_number_quiet MATLAB_S...
github
svndl/mrC-master
BrikLoad.m
.m
mrC-master/tools/afni/BrikLoad.m
31,411
utf_8
78736510e41324f7071e54812a819c86
function [err, V, Info, ErrMessage] = BrikLoad (BrikName, param1, param2) % % OLD USAGE for backward compatibility, see New Usage % % [err, V, Info, ErrMessage] = BrikLoad (BrikName, [form], [MachineFormat]) % or % [V,Info] = BrikLoad (BrikName, [form], [MachineFormat]) % or % [V] = BrikLoad (BrikName, [form], [...
github
svndl/mrC-master
CA_EZ_Prep_genx.m
.m
mrC-master/tools/afni/CA_EZ_Prep_genx.m
15,116
utf_8
51cd86ef6ec2196b2839fe6c1dde1a2b
function [MapMPM, MapML, aur] = CA_EZ_Prep_genx() % A function to process a new Eickhoff, Amunts and Zilles CA toolbox % create NIML files that describe "atlas point lists" for each % of the atlases included % DRG/ZSS SSCC MAY 2011 FuncName = 'CA_EZ_Prep_genx'; MapMPM = []; MapML = []; % version 1.8 CA_EZ_Version = '...
github
svndl/mrC-master
zglobb.m
.m
mrC-master/tools/afni/zglobb.m
3,946
utf_8
508195b45ee39c7296447826b75515f4
function [err,ErrMessage, NameList] = zglobb (Identifiers, Opt) % % [err, ErrMessage, List] = zglobb (Identifiers, [Opt]) %or % [List] = zglobb (Identifiers, [Opt]) %Purpose: % returns the list of files specified in Identifiers % % %Input Parameters: % Identifiers is a cellstr identifying which briks to ...
github
svndl/mrC-master
afni_niml_parse.m
.m
mrC-master/tools/afni/afni_niml_parse.m
4,146
utf_8
9c289bd0d02d55af572d289bf76d29b6
function niml = afni_niml_parse(s) % Simple parsing routine for AFNI NIML datasets % % N=AFNI_NIML_PARSE(S) parses the niml string S and returns a parsed % structure P. % % P can either be an niml element, or a group of niml elements. In the % formder case, P contains a field .data; in the latter, a cell .nodes....
github
svndl/mrC-master
afni_fig_interface.m
.m
mrC-master/tools/afni/afni_fig_interface.m
3,035
utf_8
a6e27aaa75a4fe2aebabe4db5d20acfb
function afni_fig_interface(src, evnt) cf = gcf; figure(src); % evnt ud = get(src,'UserData'); if (isempty(ud) | ~isfield(ud,'axes_lock')), ud = default_ud(); set(src,'UserData',ud); end if ( lower(evnt.Character) == 'l' ), ud.axes_lock = ~ud.axes_lock; set (src,'UserD...
github
svndl/mrC-master
TellAfni.m
.m
mrC-master/tools/afni/TellAfni.m
5,472
utf_8
77dce5f5339989af26f3e100da6bcfc3
function [err] = TellAfni (cs, opt) % % [err] = TellAfni (cs, opt) % %Purpose: % Drive AFNI % % %Input Parameters: % cs: An Nx1 vector of communication command structures % It is obtained using NewCs structure % opt: An optional options structure % .QuitOnErr (0/[1]): Return from function if ...
github
svndl/mrC-master
zinputdlg.m
.m
mrC-master/tools/afni/zinputdlg.m
16,603
utf_8
94a3118376364889b882ce214d95b921
function Answer=zinputdlg(Prompt, Title, NumLines, DefAns, Resize) % A copy of inputdlg.m , modified to have better looking font settings %ZINPUTDLG Input dialog box. % ANSWER = ZINPUTDLG(PROMPT) creates a modal dialog box that returns user % input for multiple prompts in the cell array ANSWER. PROMPT is a cell % ar...
github
svndl/mrC-master
afni_niml_read.m
.m
mrC-master/tools/afni/afni_niml_read.m
2,791
utf_8
3da5cff1cf07ffd470bd42539f8078b9
function [p,s]=afni_niml_read(fn) % simple function to read niml files % % P=AFNI_NIML_READ(FN) reads a file FN and returns a NIML structure P. % [P,S]=AFNI_NIML_READ(FN) also returns the file contents S % % If FN refers to a file in another format than ASCII NIML, an attempt is % made to convert the file to this forma...
github
svndl/mrC-master
afni_nel_parse.m
.m
mrC-master/tools/afni/afni_nel_parse.m
1,763
utf_8
62fbd076a3c4430f06f6385abc18b2d8
function [nel] = afni_nel_parse(nellcell) %should really check that this is nel and not ngr ... %assuming we have nel %get the header part cnel = char(nellcell); clear nellcell; ncnel = length(cnel); %break up into head and data expr = '(?<head><(\w+).*?>)(?<data>.*)<'; %usi...
github
svndl/mrC-master
afni_niml_print.m
.m
mrC-master/tools/afni/afni_niml_print.m
5,521
utf_8
9dbc69da949e82e64071c668290ac2da
function s=afni_niml_print(p) % takes a NIML data structure and converts it to string representation % % S=AFNI_NIML_PRINT(P) takes an NIML datastructure P and returns a string % representation S. % % This function is more or less the inverse of AFNI_NIML_PARSE. % % The current implementation will take any struct that...
github
svndl/mrC-master
CA_EZ_Prep.m
.m
mrC-master/tools/afni/CA_EZ_Prep.m
14,358
utf_8
af87e1ccd31dc096f0a411e877de8dd9
function [MapMPM, MapML, aur] = CA_EZ_Prep() % A function to process a new Eickhoff, Amunts and Zilles CA toolbox % The function creates new versions of AFNI's source files % thd_ttatlas_CA_EZ.c and thd_ttatlas_CA_EZ.h . % The new files created are called thd_ttatlas_CA_EZ-auto.c and thd_ttatlas_CA_EZ-auto.h % must be ...
github
svndl/mrC-master
ROIcmap.m
.m
mrC-master/tools/afni/ROIcmap.m
3,692
utf_8
2bf411d8a196a63c050066abae7b8905
function [M] = ROIcmap(nc,opt) % [M] = ROIcmap([nc],[opt]); % creates a colormap with % no color too close to grayscale, % no two consecutive colors too close % no colors exeedingly close to another in the map % no colors too close to a background color (optional) % nc: number...
github
svndl/mrC-master
BrikInfo_2_niml_writesimple.m
.m
mrC-master/tools/afni/BrikInfo_2_niml_writesimple.m
2,013
utf_8
a6acbbbf09551917a42d288bd4aa9b0c
function S=BrikInfo_2_niml_writesimple(Info, S) % % [S]=BrikInfo_2_niml_writesimple(Info, [S]) % %Purpose: % Converts some fields in the BRIK header structure % to a structure used in function afni_niml_writesimple % %Input Parameters: % Info: Brick header structure like one output by BrikInfo % S: If specifed add...
github
svndl/mrC-master
ttest_permute_sstats.m
.m
mrC-master/tools/statistics/ttest_permute_sstats.m
7,134
utf_8
402eb44813c96749d6effc0661a47b79
function [realH, realP, realT, corrH, critVal, supraTh, randDist]= ttest_permute_sstats( inData,maxPerms,testStat,timeMask,permMatrix,deletePool,tParams) % [realH,realP,realT,corrH,critVal,supraTh, randDist= ttest_permute_sstat( inData, maxPerms, testStat, timeMask, permMatrix, deletePool, tParams ) % ...
github
svndl/mrC-master
ttest_permute.m
.m
mrC-master/tools/statistics/ttest_permute.m
4,211
utf_8
5cca3b8158082d5d7fa2dfa53843aa63
function [realT,realP,corrT,critVal,clustDistrib]= ttest_permute( inData,maxPerms,timeMask,permMatrix,deletePool,tParams ) % [realT,realP,corrT,critVal,clustDistrib]= ttest_permute( inData,maxPerms,timeMask,permMatrix,deletePool,tParams ) % % input: % inData: the difference waveform t...
github
svndl/mrC-master
FDR_main.m
.m
mrC-master/tools/statistics/FDR/FDR_main.m
7,392
utf_8
b5829aff6d354cb8c09eff5ffd6f93b1
% General FDR procedure % Parameters: % P p-value vector % q scalar controlling FDR output % str name of procedure (case insensetive) % Output: % F vector containing indices of hypotheses that passsed selected procedure function F=FDR_main(P, q, str) switch lower(str) case 'ib...
github
svndl/mrC-master
RigidRotate.m
.m
mrC-master/+mrC/RigidRotate.m
3,156
utf_8
48fbc31267bdb29d7b5123f4d542058d
function [transMat,movedPoints] = RigidRotate(params,moveablePoints) % mrC.RigidRotate - performs a rigid body transformation % [movedPoints,rotMtx] = RigidRotate(params,movablePoints) % This function that performs a rigid body transformation on movablePoints % that is specified as follows: % % movablePoints ...
github
svndl/mrC-master
SNR.m
.m
mrC-master/+mrC/SNR.m
10,214
utf_8
f9f3b97ff487c7ea53404207c4907274
function [outData,anovaData] = SNR(Y,Ydim,varargin) % [outData,anovaData] = mrC.SNR(Y,Ydim,varargin) opt = ParseArgs(varargin, ... 'ROIs', Ydim{2}, ... 'conds', Ydim{4}, ... 'subs', Ydim{3}, ... 'inverse', 1, ... 'band', 2, ... 'method', 'Coherent', ... '...
github
svndl/mrC-master
FitPointsToScalp.m
.m
mrC-master/+mrC/FitPointsToScalp.m
4,831
utf_8
af16fc6c237eccf30de0c8fc8f55cdee
function [rotationMtx, movedPoints] = FitPointsToScalp(scalp,electrodes,headshape) % mrC.fitPointsToScalp - Find a rigid transformation the best fits 2 sets of points % function [rotationMtx, movedPoints] = mrC.fitPointsToScalp(scalp,fiducials,electrodes,headshape) % Uses function: rigidRotate % %...
github
svndl/mrC-master
FlattenZ.m
.m
mrC-master/+mrC/FlattenZ.m
2,066
utf_8
e7f77ec00eb22b08436f8ae3f3f397c3
function xy = FlattenZ(xyz,eFlat) % xy = mrC.FlattenZ(xyz, eFlat) % Flatten a set of 3-D Cartesian coords in the 3rd dimension % 1. find best fitting sphere % 2. subtract origin % 3. tranform to spherical coords [theta,phi,r] % 4. flatten to 2-D polar coords using: % theta = theta ...
github
svndl/mrC-master
MakeInverses.m
.m
mrC-master/+mrC/MakeInverses.m
19,828
utf_8
1fce4da98da65c4f8765cd7282063909
function params = MakeInverses( projectDir,params ) %function mrC.MakeInverses( projectDir,params ) % % params is a structure some fields: % params.SNR = estimated power SNR % params.useROIs = boolean specifying whether to constrain % params.areaExp = area weighting exponent. % localization ...
github
svndl/mrC-master
CoregisterElectrodes.m
.m
mrC-master/+mrC/CoregisterElectrodes.m
11,659
utf_8
0647b8a8cce26e34abe8ce25f927588e
function [scf,fidError] = CoregisterElectrodes( elpFile, fiducialFile, outputDir , display ) % Description: Function written by Justin Ales % % Syntax: mrC.CoregisterElectrodes( elpfile, fiducialFile, outputDir ) % % elpfile - string indicating the electrode positions file in the ...
github
svndl/mrC-master
TriMaker.m
.m
mrC-master/+mrC/+HeadModel/TriMaker.m
4,220
utf_8
b214bece480279868c0655a611c16009
function success = TriMaker(subj_id,headmodel_folder) % success = mrC.Headmodel.TriMaker(subj_id) if strfind(subj_id,'_fs4'); subj_id = subj_id(1:end-4); % get rid of FS suffix, if given by user else end [fsDir,anatDir] = mrC.SystemSetup; if nargin < 2 headmodel_fol...
github
svndl/mrC-master
VisualizeSourceRoi2.m
.m
mrC-master/+mrC/+Simulate/VisualizeSourceRoi2.m
5,805
utf_8
9118bbf9bf815f93acdf2d75c9bb18c4
function [Fhandler,RoiList] = VisualizeSourceRoi2(subID,anatDir,RoiType,RoiIdx,direction,hemi,cmap,RoiLeg) % gets the subject ID and anatomy folder and plots the % ROIs on the subjects default cortex... % Elham Barzegaran, 5.25.2018 %% default variables if ~exist('anatDir','var')||isempty(anatDir) anatDir = getpre...
github
svndl/mrC-master
FitNoise.m
.m
mrC-master/+mrC/+Simulate/FitNoise.m
6,870
utf_8
5e3ea5cb20718472d8656e73f1d66ee4
function [noise, NoiseParams,sensor_noise] = FitNoise(f_sampling, n_samples,NoiseParams, pink_noise,alpha_noise, sensor_noise,fwdMatrix,doFwdProjection,optimizeParam) % Fit the Noise-to-Noise ratio accroding to the real resting EEG data %% --------------------combine different types of noise-------------------- if opt...
github
svndl/mrC-master
VisualizeSourceRoi.m
.m
mrC-master/+mrC/+Simulate/VisualizeSourceRoi.m
5,650
utf_8
c6e840d624eb38ee0557b726bb5b429c
function [Fhandler,RoiList] = VisualizeSourceRoi(subID,anatDir,RoiType,RoiIdx,direction,hemi,cmap,RoiLeg) % gets the subject ID and anatomy folder and plots the % ROIs on the subjects default cortex... % [Fhandler,RoiList] = VisualizeSourceRoi(subID,anatDir,RoiType,RoiIdx,direction,hemi,cmap,RoiLeg) % Elham Barzegaran,...
github
svndl/mrC-master
PrepareProjectSimulate.m
.m
mrC-master/+mrC/+Simulate/PrepareProjectSimulate.m
6,410
utf_8
4ce7e4ee61d977ecfec0a97942314d6e
function [ForwardPath, AnatomyPath] = PrepareProjectSimulate(ProjectPath,DestPath,varargin) % This function get a mrC project folder and copy the necessary data including forward, % ROI and surface and inverse files to another destination to make a smaller input data % for mrC.simulate % INPUTS: % ProjectPath: ...
github
svndl/mrC-master
SrcSigMtx.m
.m
mrC-master/+mrC/+Simulate/SrcSigMtx.m
14,322
utf_8
4e6f05a885724f95ddaa6795cf4bf092
function [EEGData,EEGData_signal, sourceData,roiSet] = SrcSigMtx(rois,fwdMatrix,surfData,opt,noise,noiseSensor,lambda,spatial_normalization_type)% ROIsig %NoiseParams % Description: Generate Seed Signal within specified ROIs % % Syntax: [EEGData,sourceData,roiSet] = SrcSigMtx(rois,fwdMatrix,surfData,signal...
github
svndl/mrC-master
ResolutionMatrices.m
.m
mrC-master/+mrC/+Simulate/ResolutionMatrices.m
13,523
utf_8
bd85c9f6db6205c59bbe2647393be22d
function [CrossTalk,Errors,ROISource,ScalpData,LIST,subIDs] = ResolutionMatrices(projectPath,varargin) % Description: This function gets the path for a mrc project and simulate % EEG with activity (seed signal as input) in specific ROIs (input), % and pink and alpha noises (noise parameters can be set ...
github
svndl/mrC-master
SimulateProject.m
.m
mrC-master/+mrC/+Simulate/SimulateProject.m
20,542
utf_8
2386a85b98ef370dae776d9c07c2b8d6
function [EEGData,EEGAxx,EEGData_signal,EEGAxx_signal,sourceDataOrigin,masterList,subIDs,allSubjFwdMatrices,allSubjRois] = SimulateProject(projectPath,varargin) % Syntax: [EEGData,EEGAxx,sourceDataOrigin,masterList,subIDs] = SimulateProject(projectPath,varargin) % Description: This function gets the path f...
github
svndl/mrC-master
GenerateNoise.m
.m
mrC-master/+mrC/+Simulate/GenerateNoise.m
9,221
utf_8
e992a6d661e1fee85a63b0fad540c975
function [pink_noise, alpha_noise,sensor_noise] = GenerateNoise(f_sampling, n_samples, n_nodes, NoiseParams, noise_mixing_data, spatial_normalization_type,fwdMatrix,doFwdProjection) % Syntax: [noise, pink_noise, pink_noise_uncoh, alpha_noise] = GenerateNoise(f_sampling, n_samples, n_nodes, mu, alpha_nodes, noise_mixing...
github
svndl/mrC-master
dijkstra.m
.m
mrC-master/+mrC/+Simulate/private/dijkstra.m
10,890
utf_8
537f77ffe119ce21c7ee1a9e2a0d2cc2
% DIJKSTRA Calculate Minimum Costs and Paths using Dijkstra's Algorithm % % Filename: dijkstra.m % % Description: Given vertices and edge connections for a graph (represented by % either adjacency matrix or edge list) and edge costs that are greater % than zero, this function computes the shortest path from...
github
svndl/mrC-master
mne_load_coil_def.m
.m
mrC-master/external/mne_matlab/mne_load_coil_def.m
8,714
utf_8
27f6f7c6a6d28610885a9c1be788e73a
function [CoilDef,Header] = mne_load_coil_def(fname); % % % [CoilDef,Header] = mne_load_coil_def(fname); % CoilDef = mne_load_coil_def(fname); % % If file name is not specified, the standard coil definition file % $MNE_ROOT/setup/mne/coil_def.dat or $MNE_ROOT/share/mne/coil_def.dat is read % % The co...
github
svndl/mrC-master
fiff_find_evoked.m
.m
mrC-master/external/mne_matlab/fiff_find_evoked.m
2,846
utf_8
f7c5e4fd4395754f0e87d3fe6e984d62
function [data_sets] = fiff_find_evoked(fname) % % [data_sets] = fiff_find_evoked(fname) % % Find all evoked data sets in a fif file and create a list of descriptors % % % Author : Matti Hamalainen, MGH Martinos Center % License : BSD 3-clause % global FIFF; if isempty(FIFF) FIFF = fiff_define_constants(); e...
github
svndl/mrC-master
eeglab.m
.m
mrC-master/external/eeglab14_1_1b/eeglab.m
112,761
utf_8
e89e8ec2638684a492f792c224d36b58
% eeglab() - Matlab graphic user interface environment for % electrophysiological data analysis incorporating the ICA/EEG toolbox % (Makeig et al.) developed at CNL / The Salk Institute, 1997-2001. % Released 11/2002- as EEGLAB (Delorme, Makeig, et al.) at the Swartz Center % for Computational Neuroscience,...
github
svndl/mrC-master
display.m
.m
mrC-master/external/eeglab14_1_1b/functions/@memmapdata/display.m
1,180
utf_8
d3d679b5764eca6d062540923f669f7b
% display() - display an EEG data class underlying structure % % Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008 % Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the ...
github
svndl/mrC-master
reshape.m
.m
mrC-master/external/eeglab14_1_1b/functions/@memmapdata/reshape.m
1,449
utf_8
d59a7e256f6fc43fe77f3be9319fcc46
% reshape() - reshape of memory mapped underlying array % % Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008 % Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free ...
github
svndl/mrC-master
end.m
.m
mrC-master/external/eeglab14_1_1b/functions/@memmapdata/end.m
901
utf_8
0e38d125a547083cb574fbd3bb455fbd
% end() - last index to memmapdata array % % Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008 % Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Founda...
github
svndl/mrC-master
subsasgn.m
.m
mrC-master/external/eeglab14_1_1b/functions/@memmapdata/subsasgn.m
1,590
utf_8
6b2894eb17dab5aae0637b84992ffb7d
% subsasgn() - define index assignment for eegdata objects % % Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008 % Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Fr...
github
svndl/mrC-master
isnumeric.m
.m
mrC-master/external/eeglab14_1_1b/functions/@memmapdata/isnumeric.m
877
utf_8
34baf204e1b984ee69cf7f462fe2e524
% isnumeric() - returns 1 % % Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008 % Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation; either v...
github
svndl/mrC-master
length.m
.m
mrC-master/external/eeglab14_1_1b/functions/@memmapdata/length.m
913
utf_8
f0841237745a123f3215e00164cc4a1a
% length() - length of memory mapped underlying array % % Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008 % Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free So...
github
svndl/mrC-master
sum.m
.m
mrC-master/external/eeglab14_1_1b/functions/@memmapdata/sum.m
1,913
utf_8
dbd7353e16ccf6a1a0b69875cd9050cb
% sum() - sum of memory mapped underlying array % % Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008 % Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software...
github
svndl/mrC-master
size.m
.m
mrC-master/external/eeglab14_1_1b/functions/@memmapdata/size.m
1,383
utf_8
c7033b3ab1405ded2c8794f2c214beb9
% size() - size of memory mapped underlying array % % Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008 % Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Softwa...
github
svndl/mrC-master
subsref.m
.m
mrC-master/external/eeglab14_1_1b/functions/@memmapdata/subsref.m
4,622
utf_8
096fd75b6454f11ffee5a172000a64c1
% subsref() - index eegdata class % % Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008 % Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation; e...
github
svndl/mrC-master
ndims.m
.m
mrC-master/external/eeglab14_1_1b/functions/@memmapdata/ndims.m
1,169
utf_8
8c3ed2dde450e1422a2552d22e9c150b
% ndims() - number of dimension of memory mapped underlying array % % Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008 % Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by %...
github
svndl/mrC-master
memmapdata.m
.m
mrC-master/external/eeglab14_1_1b/functions/@memmapdata/memmapdata.m
1,994
utf_8
5f967fcb7b637954900e09789144dde6
% memmapdata() - create a memory-mapped data class % % Usage: % >> data_class = memmapdata(data); % % Inputs: % data - input data or data file % % Outputs: % data_class - output dataset class % % Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008 % Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD % ...
github
svndl/mrC-master
display.m
.m
mrC-master/external/eeglab14_1_1b/functions/@mmo/display.m
1,161
utf_8
b43db5e3387d5dcb39fafa9aa03939f9
% display() - display an EEG data class underlying structure % % Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008 % Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the ...
github
svndl/mrC-master
reshape.m
.m
mrC-master/external/eeglab14_1_1b/functions/@mmo/reshape.m
1,242
utf_8
cc03295fbaa6179eb2e8b266daf6b644
% reshape() - reshape of memory mapped underlying array % % Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008 % Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free ...
github
svndl/mrC-master
subsasgn_old.m
.m
mrC-master/external/eeglab14_1_1b/functions/@mmo/subsasgn_old.m
9,802
utf_8
0fc68a1bfa60e3118b3a4b6efd10fa52
% subsasgn() - define index assignment for eegdata objects % % Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008 % Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Fr...
github
svndl/mrC-master
end.m
.m
mrC-master/external/eeglab14_1_1b/functions/@mmo/end.m
901
utf_8
0e38d125a547083cb574fbd3bb455fbd
% end() - last index to memmapdata array % % Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008 % Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Founda...
github
svndl/mrC-master
subsasgn.m
.m
mrC-master/external/eeglab14_1_1b/functions/@mmo/subsasgn.m
10,655
utf_8
c4514f5b1f0fec385eeb19fee7a5db56
% subsasgn() - define index assignment for eegdata objects % % Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008 % Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Fr...
github
svndl/mrC-master
isnumeric.m
.m
mrC-master/external/eeglab14_1_1b/functions/@mmo/isnumeric.m
877
utf_8
34baf204e1b984ee69cf7f462fe2e524
% isnumeric() - returns 1 % % Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008 % Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation; either v...
github
svndl/mrC-master
checkcopies_local.m
.m
mrC-master/external/eeglab14_1_1b/functions/@mmo/checkcopies_local.m
634
utf_8
8eb8d5fec95c91346e91a09010082b47
% subfunction checking the number of local copies % ----------------------------------------------- function ncopies = checkcopies_local(obj, arg); ncopies = 0; if isstruct(arg) for ilen = 1:length(arg) for index = fieldnames(arg)' ncopies = ncopies + checkcopies_local(obj, arg(ilen).(index{1}))...
github
svndl/mrC-master
changefile.m
.m
mrC-master/external/eeglab14_1_1b/functions/@mmo/changefile.m
187
utf_8
e75127c90da43ddce182d36cf0abbdee
% this function is called when the file is being saved function obj = changefile(obj, newfile) movefile(obj.dataFile, newfile); obj.dataFile = newfile; obj.writable = false;
github
svndl/mrC-master
var.m
.m
mrC-master/external/eeglab14_1_1b/functions/@mmo/var.m
1,416
utf_8
2360192fa42b3c35ebd7743ffe4fe8b6
% var() - variance of memory mapped underlying array % % Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008 % Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Sof...
github
svndl/mrC-master
length.m
.m
mrC-master/external/eeglab14_1_1b/functions/@mmo/length.m
913
utf_8
f0841237745a123f3215e00164cc4a1a
% length() - length of memory mapped underlying array % % Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008 % Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free So...
github
svndl/mrC-master
sum.m
.m
mrC-master/external/eeglab14_1_1b/functions/@mmo/sum.m
1,212
utf_8
2fbce1d1b6e2a5edf32742897441a732
% sum() - sum of memory mapped underlying array % % Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008 % Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software...
github
svndl/mrC-master
size.m
.m
mrC-master/external/eeglab14_1_1b/functions/@mmo/size.m
1,751
utf_8
daf6932de04161ccb2df3df31b45203a
% size() - size of memory mapped underlying array % % Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008 % Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Softwa...
github
svndl/mrC-master
subsref.m
.m
mrC-master/external/eeglab14_1_1b/functions/@mmo/subsref.m
2,711
utf_8
1da2db6dbbc53f36d6d2954f095f9064
% subsref() - index eegdata class % % Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008 % Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation; e...
github
svndl/mrC-master
ndims.m
.m
mrC-master/external/eeglab14_1_1b/functions/@mmo/ndims.m
1,095
utf_8
7ddcbafa2aaf95308a1a4de4a272f0ae
% ndims() - number of dimension of memory mapped underlying array % % Author: Arnaud Delorme, SCCN, INC, UCSD, Nov. 2008 % Copyright (C) 2008 Arnaud Delorme, SCCN, INC, UCSD % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by %...
github
svndl/mrC-master
correctfit.m
.m
mrC-master/external/eeglab14_1_1b/functions/timefreqfunc/correctfit.m
3,222
utf_8
69c8b2f965023329820bdfd3c7e82176
% correctfit() - correct fit using observed p-values. Use this function % if for some reason, the distribution of p values is % not uniform between 0 and 1 % % Usage: % >> [p phat pci zerofreq] = correctfit(pval, 'key', 'val'); % % Inputs: % pval - input p value % % Optional inputs...
github
svndl/mrC-master
timef.m
.m
mrC-master/external/eeglab14_1_1b/functions/timefreqfunc/timef.m
42,818
utf_8
6663467d76d01722baccf168fec18e1b
% timef() - Returns estimates and plots of mean event-related spectral % perturbation (ERSP) and inter-trial coherence (ITC) changes % across event-related trials (epochs) of a single input time series. % * Uses either fixed-window, zero-padded FFTs (fastest), wavelet % 0-padded D...
github
svndl/mrC-master
rsadjust.m
.m
mrC-master/external/eeglab14_1_1b/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
svndl/mrC-master
newcrossf.m
.m
mrC-master/external/eeglab14_1_1b/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
svndl/mrC-master
crossf.m
.m
mrC-master/external/eeglab14_1_1b/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
svndl/mrC-master
dftfilt2.m
.m
mrC-master/external/eeglab14_1_1b/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
svndl/mrC-master
newtimef.m
.m
mrC-master/external/eeglab14_1_1b/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
svndl/mrC-master
rspdfsolv.m
.m
mrC-master/external/eeglab14_1_1b/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
svndl/mrC-master
dftfilt.m
.m
mrC-master/external/eeglab14_1_1b/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
svndl/mrC-master
rspfunc.m
.m
mrC-master/external/eeglab14_1_1b/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
svndl/mrC-master
correct_mc.m
.m
mrC-master/external/eeglab14_1_1b/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
svndl/mrC-master
pac.m
.m
mrC-master/external/eeglab14_1_1b/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
svndl/mrC-master
bootstat.m
.m
mrC-master/external/eeglab14_1_1b/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
svndl/mrC-master
timefreq.m
.m
mrC-master/external/eeglab14_1_1b/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
svndl/mrC-master
pac_cont.m
.m
mrC-master/external/eeglab14_1_1b/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
svndl/mrC-master
dftfilt3.m
.m
mrC-master/external/eeglab14_1_1b/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
svndl/mrC-master
rsget.m
.m
mrC-master/external/eeglab14_1_1b/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
svndl/mrC-master
rsfit.m
.m
mrC-master/external/eeglab14_1_1b/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
svndl/mrC-master
timewarp.m
.m
mrC-master/external/eeglab14_1_1b/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 ...