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
mccahill/docker-novnc-fmri-master
writeCPersist.m
.m
docker-novnc-fmri-master/mri/spm12/external/ctf/writeCPersist.m
5,086
utf_8
0c56dc571aa56100f050678e5fe815ff
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%% Function writeCPersist %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function writeCPersist(filename,Tag) % Version 1.2 24 April 2007. Removed terminating null characters from charatcer strings % ...
github
mccahill/docker-novnc-fmri-master
getCTFBalanceCoefs.m
.m
docker-novnc-fmri-master/mri/spm12/external/ctf/getCTFBalanceCoefs.m
20,490
utf_8
2c434fcbdb53fbc50ee3fbda72e98883
function [alphaMEG,MEGindex,MEGbalanceindex,alphaGref,Grefindex,Gbalanceindex]=... getCTFBalanceCoefs(ds,balanceType,unit); % Reads balance coefficients for SQUID data in phi0's, and converts to coefficients % for data in physical units. % Input : ds : (1) ds structure from readCTFds % balanceType : 'N...
github
mccahill/docker-novnc-fmri-master
writeCTFds.m
.m
docker-novnc-fmri-master/mri/spm12/external/ctf/writeCTFds.m
68,946
utf_8
96615f4833d69490d5b3e47f6f86c538
function ds=writeCTFds(datasetname,ds,data,unit); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % This program creates datasets that can be analyzed by CTF software. % % ...
github
mccahill/docker-novnc-fmri-master
writeRes4.m
.m
docker-novnc-fmri-master/mri/spm12/external/ctf/writeRes4.m
8,560
utf_8
416bc2b62624835c63140e54415d2f49
function res4=writeRes4(res4File,res4,MAX_COILS); % Write the new .res4 file. Use ieee-be (big endian) format % Character-string output is done using function writeCTFstring which % checks that strings are the correct length for the .res4 file format. % Function calls: - writeCTFstring (included in this listing)....
github
mccahill/docker-novnc-fmri-master
addCTFtrial.m
.m
docker-novnc-fmri-master/mri/spm12/external/ctf/addCTFtrial.m
51,483
utf_8
b59730fdb231f07741e7e87dea9e6c1c
function cntrl=addCTFtrial(datasetname,data,unit,mrk,cls,badSegments); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % This program creates datasets that can be analyzed by CTF software. %...
github
mccahill/docker-novnc-fmri-master
setCTFDataBalance.m
.m
docker-novnc-fmri-master/mri/spm12/external/ctf/setCTFDataBalance.m
32,056
utf_8
894c3744554abe635876ce6944dca0cd
function [data,ds]=setCTFDataBalance(data,ds,balance1,unit,chanList,messages); % Version 1.1 13 April 2007 Mod to chanList: If chanList is omitted and % size(data,2)<ds.res4.no_channels, then setCTFDataBalance % sets chanList=1:size(data,2) and prints a war...
github
mccahill/docker-novnc-fmri-master
writeCTFMRI.m
.m
docker-novnc-fmri-master/mri/spm12/external/ctf/writeCTFMRI.m
8,517
utf_8
c6bdbc15d67e3621b8109f6b399f5eae
function writeCTFMRI(fileName,MRItags,MRIdata); % Version 1.2 25 April 2007 Module writeCPersist changed, and removed from this text % file. % Version 1.1 19 April 2007 : No changes from v1.0 % Version 1.0 27 Oct. 2006 % Write a CTF MRI in v4 format. % For file format and a def...
github
mccahill/docker-novnc-fmri-master
readCTFds.m
.m
docker-novnc-fmri-master/mri/spm12/external/ctf/readCTFds.m
36,570
utf_8
e228d972ce0710af61be4d1d0c89f3fe
function ds=readCTFds(datasetname) % ************************************************************************ % % This program is provided to users of CTF MEG systems as a courtesy only. % It's operation has not been verified for clinical use. % Please do not redistribute it without permission from CTF Systems I...
github
mccahill/docker-novnc-fmri-master
ft_channelselection.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_channelselection.m
21,873
utf_8
4967cbdfb8cd8b067e58f6fb58ad93ef
function [channel] = ft_channelselection(desired, datachannel, senstype) % FT_CHANNELSELECTION makes a selection of EEG and/or MEG channel labels. % This function translates the user-specified list of channels into channel % labels as they occur in the data. This channel selection procedure can be % used throughout Fi...
github
mccahill/docker-novnc-fmri-master
ft_prepare_layout.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_prepare_layout.m
39,439
utf_8
c9348eb5befb3751181e7e2d1d103edb
function [layout, cfg] = ft_prepare_layout(cfg, data) % FT_PREPARE_LAYOUT loads or creates a 2-D layout of the channel locations. This layout % is required for plotting the topographical distribution of the potential % or field distribution, or for plotting timecourses in a topographical % arrangement. % % Use as % ...
github
mccahill/docker-novnc-fmri-master
ft_analysispipeline.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_analysispipeline.m
25,702
utf_8
90e97206d75af0812634cedace7190c0
function [pipeline] = ft_analysispipeline(cfg, data) % FT_ANALYSIPIPELINE reconstructs the complete analysis pipeline that was used to create % the input FieldTrip data structure. The pipeline will be visualized as a flowchart. % In the future it will be possible to output the complete pipeline as a MATLAB script % or...
github
mccahill/docker-novnc-fmri-master
ft_freqbaseline.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_freqbaseline.m
6,744
utf_8
b61597cca2220d4ee6639ea4ad856fa3
function [freq] = ft_freqbaseline(cfg, freq) % FT_FREQBASELINE performs baseline normalization for time-frequency data % % Use as % [freq] = ft_freqbaseline(cfg, freq) % where the freq data comes from FT_FREQANALYSIS and the configuration % should contain % cfg.baseline = [begin end] (default = 'no') % cfg....
github
mccahill/docker-novnc-fmri-master
ft_sourceinterpolate.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_sourceinterpolate.m
20,545
utf_8
e15ac359ea0f896c653f9d2cbeaf3a87
function [interp] = ft_sourceinterpolate(cfg, functional, anatomical) % FT_SOURCEINTERPOLATE interpolates the source reconstructed activity % or a statistical distribution onto the voxels or vertices of an % anatomical description of the brain. Both the functional and the % anatomical data can either describe a 3-dim...
github
mccahill/docker-novnc-fmri-master
ft_megplanar.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_megplanar.m
15,936
utf_8
8df5e9ea87746f09aea207ae7e84e111
function [data] = ft_megplanar(cfg, data) % FT_MEGPLANAR computes planar MEG gradients gradients for raw data or average % event-related field data. It can also convert frequency-domain data that was computed % using FT_FREQANALYSIS, as long as it contains the complex-valued fourierspcrm and not % only the powspctrm. ...
github
mccahill/docker-novnc-fmri-master
ft_movieplotTFR.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_movieplotTFR.m
16,930
utf_8
8cd90fbb40f19533caada8a7715f4771
function [cfg] = ft_movieplotTFR(cfg, data) % FT_MOVIEPLOTTFR makes a movie of the time-frequency representation of power or % coherence. % % Use as % ft_movieplotTFR(cfg, data) % where the input data comes from FT_FREQANALYSIS or FT_FREQDESCRIPTIVES and the % configuration is a structure that can contain % cfg.pa...
github
mccahill/docker-novnc-fmri-master
ft_volumerealign.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_volumerealign.m
56,732
utf_8
1acde14131687a72b6df56f039504914
function [realign, snap] = ft_volumerealign(cfg, mri, target) % FT_VOLUMEREALIGN spatially aligns an anatomical MRI with head coordinates based on % external fiducials or anatomical landmarks. This function does not change the % anatomical MRI volume itself, but only adjusts the homogeneous transformation % matrix tha...
github
mccahill/docker-novnc-fmri-master
ft_qualitycheck.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_qualitycheck.m
25,628
utf_8
64487e2140d0257cf0b82ddbe9b9fa82
function [varargout] = ft_qualitycheck(cfg) % FT_QUALITYCHECK performs a quality inspection of a given MEG/EEG dataset, % stores (.mat), and visualizes the result (.png and .pdf). % % This function segments the data into 10-second pieces and performs the % following analyses: % 1) reads the properties of the dataset ...
github
mccahill/docker-novnc-fmri-master
ft_denoise_pca.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_denoise_pca.m
16,753
utf_8
bf919dc122c06e1971961c05fd6d2d11
function data = ft_denoise_pca(cfg, varargin) % FT_DENOISE_PCA performs a principal component analysis (PCA) on specified % reference channels and subtracts the projection of the data of interest onto % this orthogonal basis from the data of interest. This is the algorithm which % is applied by 4D to compute noise can...
github
mccahill/docker-novnc-fmri-master
ft_sensorrealign.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_sensorrealign.m
35,350
utf_8
a8ffc1be601bb62b41e01a190c1c027f
function [elec_realigned] = ft_sensorrealign(cfg, elec_original) % FT_SENSORREALIGN rotates and translates electrode and gradiometer % sensor positions to template electrode positions or towards the head % surface. It can either perform a rigid body transformation, in which only % the coordinate system is changed, or ...
github
mccahill/docker-novnc-fmri-master
ft_databrowser.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_databrowser.m
82,660
utf_8
2aa3b1bb03ecab7c820607ff8155ac86
function [cfg] = ft_databrowser(cfg, data) % FT_DATABROWSER can be used for visual inspection of data. Artifacts that % were detected by artifact functions (see FT_ARTIFACT_xxx functions where % xxx is the type of artifact) are marked. Additionally data pieces can be % marked and unmarked as artifact by manual selecti...
github
mccahill/docker-novnc-fmri-master
ft_singleplotER.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_singleplotER.m
30,067
utf_8
c36d152569207982a9941940192ea281
function [cfg] = ft_singleplotER(cfg, varargin) % FT_SINGLEPLOTER plots the event-related fields or potentials of a single % channel or the average over multiple channels. Multiple datasets can be % overlayed. % % Use as % ft_singleplotER(cfg, data) % or % ft_singleplotER(cfg, data1, data2, ..., datan) % % The dat...
github
mccahill/docker-novnc-fmri-master
ft_mvaranalysis.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_mvaranalysis.m
18,040
utf_8
db10dcf8e0a7c7c96c4a674ec8f54e68
function [mvardata] = ft_mvaranalysis(cfg, data) % FT_MVARANALYSIS performs multivariate autoregressive modeling on % time series data over multiple trials. % % Use as % [mvardata] = ft_mvaranalysis(cfg, data) % % The input data should be organised in a structure as obtained from % the FT_PREPROCESSING function. The...
github
mccahill/docker-novnc-fmri-master
ft_anonimizedata.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_anonimizedata.m
13,803
utf_8
013bce00cc2ce06e9db304b5ecd69263
function data = ft_anonimizedata(cfg, data) % FT_ANONIMIZEDATA clears the value of potentially identifying fields in % the data and in the provenance information, i.e., it updates the data and % the configuration structure and history that is maintained by FieldTrip % in the cfg field. % % Use as % output = ft_anoni...
github
mccahill/docker-novnc-fmri-master
ft_sourceplot.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_sourceplot.m
64,250
utf_8
7c1978c50205a99e686ddd2a18109d54
function ft_sourceplot(cfg, functional, anatomical) % FT_SOURCEPLOT plots functional source reconstruction data on slices or on % a surface, optionally as an overlay on anatomical MRI data, where % statistical data can be used to determine the opacity of the mask. Input % data comes from FT_SOURCEANALYSIS, FT_SOURCEGR...
github
mccahill/docker-novnc-fmri-master
ft_megrealign.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_megrealign.m
18,557
utf_8
b064c785e8de744adc030a923f9ab312
function [data] = ft_megrealign(cfg, data) % FT_MEGREALIGN interpolates MEG data towards standard gradiometer locations by % projecting the individual timelocked data towards a coarse source reconstructed % representation and computing the magnetic field on the standard gradiometer % locations. % % Use as % [interp]...
github
mccahill/docker-novnc-fmri-master
ft_volumelookup.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_volumelookup.m
14,609
utf_8
3978b5e4bd530552fa8130e1822a655c
function [output] = ft_volumelookup(cfg, volume) % FT_VOLUMELOOKUP can be used in to combine an anatomical or functional % atlas with source reconstruction. You can use it for forward and reverse % lookup. % % Given the anatomical or functional label, it looks up the locations and % creates a mask (as a binary volume)...
github
mccahill/docker-novnc-fmri-master
ft_multiplotTFR.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_multiplotTFR.m
30,989
utf_8
a005ad59bc915c09dcc68f406cf10e51
function [cfg] = ft_multiplotTFR(cfg, data) % FT_MULTIPLOTTFR plots the time-frequency representations of power or coherence % in a topographical layout. The plots of the indivual sensors are arranged % according to their location specified in the layout. % % Use as % ft_multiplotTFR(cfg, data) % % The data can be a...
github
mccahill/docker-novnc-fmri-master
ft_defaults.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_defaults.m
10,103
utf_8
bc8de5e0834af692d3f31a2279c7b581
function ft_defaults % FT_DEFAULTS (ending with "s") sets some general settings in the global variable % ft_default (without the "s") and takes care of the required path settings. This % function is called at the begin of all FieldTrip functions. % % The configuration defaults are stored in the global "ft_default" str...
github
mccahill/docker-novnc-fmri-master
ft_prepare_neighbours.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_prepare_neighbours.m
13,126
utf_8
b603e9b8719c17a6e8fa573519cc7715
function [neighbours, cfg] = ft_prepare_neighbours(cfg, data) % FT_PREPARE_NEIGHBOURS finds the neighbours of the channels based on three % different methods. Using the 'distance'-method, prepare_neighbours is % based on a minimum neighbourhood distance (in cfg.neighbourdist). The % 'triangulation'-method calculates a...
github
mccahill/docker-novnc-fmri-master
ft_crossfrequencyanalysis.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_crossfrequencyanalysis.m
9,225
utf_8
e269f9a53bf232e135d9484098b46b10
function crossfreq = ft_crossfrequencyanalysis(cfg,freqlow,freqhigh) % FT_CROSSFREQUENCYANALYSIS performs cross-frequency analysis using various % algorithms % % Use as % crossfreq = ft_crossfrequencyanalysis(cfg, freqlo, freqhi) % where freq is frequency decomposed data structure as obtained from FT_FREQANALYSIS % ...
github
mccahill/docker-novnc-fmri-master
ft_conjunctionanalysis.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_conjunctionanalysis.m
9,030
utf_8
48fc3a8cea071fb1a125b726f553921c
function [conjunction] = ft_conjunctionanalysis(cfg, varargin) % FT_CONJUNCTIONANALYSIS finds the minimum statistic common across two or % more contrasts, i.e. data following ft_xxxstatistics. Furthermore, it % finds the overlap of sensors/voxels that show statistically significant % results (a logical AND on the m...
github
mccahill/docker-novnc-fmri-master
ft_sliceinterp.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_sliceinterp.m
18,527
utf_8
e2b483684629c1cb5f0d881137af02fb
function [outim]=ft_sliceinterp(cfg, ininterp) % FT_SLICEINTERP plots a 2D-montage of source reconstruction and anatomical MRI % after these have been interpolated onto the same grid. % % Use as % ft_sliceinterp(cfg, interp) % or % [rgbimage] = ft_sliceinterp(cfg, interp), rgbimage is the monatage image % % w...
github
mccahill/docker-novnc-fmri-master
ft_clusterplot.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_clusterplot.m
18,651
utf_8
8694baba6f6d00dd8da193cb810ac798
function [cfg] = ft_clusterplot(cfg, stat) % FT_CLUSTERPLOT plots a series of topographies with highlighted clusters. % % Use as % ft_clusterplot(cfg, stat) % where the input data is obtained from FT_TIMELOCKSTATISTICS or FT_FREQSTATISTICS % and the configuration options can be % cfg.alpha = nu...
github
mccahill/docker-novnc-fmri-master
ft_sourcemovie.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_sourcemovie.m
25,873
utf_8
5572bb3e175c8a472147f59ddee22a67
function [cfg, M] = ft_sourcemovie(cfg, source, source2) % FT_SOURCEMOVIE displays the source reconstruction on a cortical mesh % and allows the user to scroll through time with a movie % % Use as % ft_sourcemovie(cfg, source) % where the input source data is obtained from FT_SOURCEANALYSIS and cfg is % a configurat...
github
mccahill/docker-novnc-fmri-master
ft_sourcedescriptives.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_sourcedescriptives.m
49,952
utf_8
a13eecf3990f02f0c9e1d4fd20e1ac18
function [source] = ft_sourcedescriptives(cfg, source) % FT_SOURCEDESCRIPTIVES computes descriptive parameters of the source % analysis results. % % Use as % [source] = ft_sourcedescriptives(cfg, source) % % where cfg is a structure with the configuration details and source is the % result from a beamformer source e...
github
mccahill/docker-novnc-fmri-master
ft_defacevolume.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_defacevolume.m
13,091
utf_8
438c476480150ed61f1b18310c08b3fb
function mri = ft_defacevolume(cfg, mri) % FT_DEFACEVOLUME allows you to blank out specific regions from an anatomical MRI, % such as the face and ears. The graphical user interface allows you to position a % box over the anatomical MRI inside which all anatomical voxel values will be % replaced by zero. Depending on ...
github
mccahill/docker-novnc-fmri-master
ft_freqanalysis_mvar.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_freqanalysis_mvar.m
7,639
utf_8
7ae783b5fc8a0f43dcac208cd9196141
function [freq] = ft_freqanalysis_mvar(cfg, data) % FT_FREQANALYSIS_MVAR performs frequency analysis on % mvar data, by fourier transformation of the coefficients. The output % contains cross-spectral density, spectral transfer matrix, and the % covariance of the innovation noise. The dimord = 'chan_chan(_freq)(_time)...
github
mccahill/docker-novnc-fmri-master
ft_math.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_math.m
18,733
utf_8
bd7f745e6190facbb0ad43e3c27fc873
function data = ft_math(cfg, varargin) % FT_MATH performs mathematical operations on FieldTrip data structures, % such as addition, subtraction, division, etc. % % Use as % data = ft_math(cfg, data1, data2, ...) % with one or multiple FieldTrip data structures as input and where cfg is a % configuration structure th...
github
mccahill/docker-novnc-fmri-master
ft_removetmsartifact.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_removetmsartifact.m
12,610
utf_8
05275fb18405d2ef9afe00bb7e42410c
function data = ft_removetmsartifact(cfg, data) % FT_REMOVETMSARTIFACT removes TMS artifacts from EEG data % % %% NOTE: Please be aware that this function is deprecated. Please follow % the TMS-EEG tutorial instead % (http://fieldtrip.fcdonders.nl/tutorial/tms-eeg). % %% % % Use as % data = ft_remov...
github
mccahill/docker-novnc-fmri-master
ft_interactiverealign.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_interactiverealign.m
20,916
utf_8
f04bdc058ae63b120be0e11c5972666f
function cfg = ft_interactiverealign(cfg) % FT_INTERACTIVEREALIGN interactively rotates, scales and translates % electrode positions to template electrode positions or towards % the head surface. % % Use as % [cfg] = ft_interactiverealign(cfg) % % The configuration structure should contain the individuals geometrica...
github
mccahill/docker-novnc-fmri-master
ft_neighbourplot.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_neighbourplot.m
14,266
utf_8
d726ed61446364883fe7d08b15bdf2a5
function [cfg] = ft_neighbourplot(cfg, data) % FT_NEIGHBOURPLOT visualizes neighbouring channels in a particular channel % configuration. The positions of the channel are specified in a % gradiometer or electrode configuration or from a layout. % % Use as % ft_neighbourplot(cfg) % or as % ft_neighbourplot(cfg, dat...
github
mccahill/docker-novnc-fmri-master
ft_appendfreq.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_appendfreq.m
14,645
utf_8
1a2115faa43e7986157d4e6ece36bd5b
function [freq] = ft_appendfreq(cfg, varargin) % FT_APPENDFREQ concatenates multiple frequency or time-frequency data % structures that have been processed separately. If the input data % structures contain different channels, it will be concatenated along the % channel direction. If the channels are identical in the ...
github
mccahill/docker-novnc-fmri-master
ft_electroderealign.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_electroderealign.m
33,830
utf_8
729261ff6fd7eefe0b6498cacb2415ce
function [norm] = ft_electroderealign(cfg) % FT_ELECTRODEREALIGN rotates and translates electrode positions to template % electrode positions or towards the head surface. It can either perform a rigid body % transformation, in which only the coordinate system is changed, or it can apply % additional deformations to th...
github
mccahill/docker-novnc-fmri-master
ft_singleplotTFR.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_singleplotTFR.m
25,566
utf_8
77510f92845cbbacc3e4a5d68433ca0a
function [cfg] = ft_singleplotTFR(cfg, data) % FT_SINGLEPLOTTFR plots the time-frequency representation of power of a % single channel or the average over multiple channels. % % Use as % ft_singleplotTFR(cfg,data) % % The input freq structure should be a a time-frequency representation of % power or coherence that w...
github
mccahill/docker-novnc-fmri-master
ft_prepare_sourcemodel.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_prepare_sourcemodel.m
33,552
utf_8
904bc43f21ebcb3cd7e5ec087ce0282a
function [grid, cfg] = ft_prepare_sourcemodel(cfg, vol, sens) % FT_PREPARE_SOURCEMODEL constructs a source model, for example a 3-D grid or a % cortical sheet. The source model that can be used for source reconstruction, % beamformer scanning, linear estimation and MEG interpolation. % % Use as % grid = ft_prepare_s...
github
mccahill/docker-novnc-fmri-master
ft_multiplotER.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_multiplotER.m
34,495
utf_8
84d9235a9ab299fbd5188263ccb235e1
function [cfg] = ft_multiplotER(cfg, varargin) % FT_MULTIPLOTER plots the event-related potentials, event-related fields % or oscillatory activity (power or coherence) versus frequency. Multiple % datasets can be overlayed. The plots are arranged according to their % location specified in the layout. % % Use as % f...
github
mccahill/docker-novnc-fmri-master
ft_prepare_mesh.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_prepare_mesh.m
8,506
utf_8
a400854617446c89aa2743275b8cf475
function [bnd, cfg] = ft_prepare_mesh(cfg, mri) % FT_PREPARE_MESH creates a triangulated surface mesh for the volume % conduction model. The mesh can either be selected manually from raw % mri data or can be generated starting from a segmented volume % information stored in the mri structure. The result is a bnd % str...
github
mccahill/docker-novnc-fmri-master
ft_compile_mex.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_compile_mex.m
7,932
utf_8
5afaf98b4fe2ea581d676bc933122f1e
function ft_compile_mex(force) % FT_COMPILE_MEX can be used for compiling most of the FieldTrip MEX files % Note that this function does not put the MEX files in the correct % location in the private folders, this is managed by SVN autosync. In case % you are not working with SVN and you want to recompile the mex file...
github
mccahill/docker-novnc-fmri-master
fieldtrip2fiff.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/fieldtrip2fiff.m
10,181
utf_8
11d3463081796deb070f6f94ece27602
function fieldtrip2fiff(filename, data) % FIELDTRIP2FIFF saves a FieldTrip raw data structure as a fiff-file, allowing it % to be further analyzed by the Neuromag software, or in the MNE suite software. % % Use as % fieldtrip2fiff(filename, data) % where filename is the name of the output file, and data is a raw dat...
github
mccahill/docker-novnc-fmri-master
ft_artifact_zvalue.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_artifact_zvalue.m
45,463
utf_8
dd8af07c91b6c1f4e65336169882288d
function [cfg, artifact] = ft_artifact_zvalue(cfg, data) % FT_ARTIFACT_ZVALUE reads the interesting segments of data from file and % identifies artifacts by means of thresholding the z-transformed value % of the preprocessed raw data. Depending on the preprocessing options, % this method will be sensitive to EOG, musc...
github
mccahill/docker-novnc-fmri-master
ft_sourceparcellate.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_sourceparcellate.m
16,383
utf_8
a5d2aa7feb472b49d2f68eefa88b2e54
function parcel = ft_sourceparcellate(cfg, source, parcellation) % FT_SOURCEPARCELLATE combines the source-reconstruction parameters over the parcels. % % Use as % output = ft_sourceparcellate(cfg, source, parcellation) % where the input source is a 2D surface-based or 3-D voxel-based source grid that was for % exa...
github
mccahill/docker-novnc-fmri-master
besa2fieldtrip.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/besa2fieldtrip.m
16,196
utf_8
77473b7d0f2fe0a20cb7454662e8cfe1
function [data] = besa2fieldtrip(input) % BESA2FIELDTRIP reads and converts various BESA datafiles into a FieldTrip % data structure, which subsequently can be used for statistical analysis % or other analysis methods implemented in Fieldtrip. % % Use as % [data] = besa2fieldtrip(filename) % where the filename shoul...
github
mccahill/docker-novnc-fmri-master
ft_topoplotCC.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/ft_topoplotCC.m
12,895
utf_8
66eb2f5a19c775d92ea107d3a6d82b75
function [cfg] = ft_topoplotCC(cfg, freq) % FT_TOPOPLOTCC plots the coherence between channel pairs % % Use as % ft_topoplotCC(cfg, freq) % % The configuration should contain: % cfg.feedback = string (default = 'textbar') % cfg.layout = specification of the layout, see FT_PREPARE_LAYOUT % cfg.foi ...
github
mccahill/docker-novnc-fmri-master
ft_struct2single.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/utilities/ft_struct2single.m
2,943
utf_8
69b1d7992be769842b00bc7713da53a3
function [x] = ft_struct2single(x, maxdepth) % FT_STRUCT2SINGLE converts all double precision numeric data in a structure % into single precision, which takes up half the amount of memory compared % to double precision. It will also convert plain matrices and cell-arrays. % % Use as % x = ft_struct2single(x); % % S...
github
mccahill/docker-novnc-fmri-master
ft_datatype_sens.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/utilities/ft_datatype_sens.m
20,793
utf_8
eb4e399097641d4e1b472e7bb1ca7b81
function [sens] = ft_datatype_sens(sens, varargin) % FT_DATATYPE_SENS describes the FieldTrip structure that represents % an EEG, ECoG, or MEG sensor array. This structure is commonly called % "elec" for EEG and "grad" for MEG, or more general "sens" for either % one. % % The structure for MEG gradiometers and/or magn...
github
mccahill/docker-novnc-fmri-master
ft_datatype.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/utilities/ft_datatype.m
9,109
utf_8
f211d600cea11a2f5db6a13824d82c5f
function [type, dimord] = ft_datatype(data, desired) % FT_DATATYPE determines the type of data represented in a FieldTrip data % structure and returns a string with raw, freq, timelock source, comp, % spike, source, volume, dip. % % Use as % [type, dimord] = ft_datatype(data) % [status] = ft_datatype(data, d...
github
mccahill/docker-novnc-fmri-master
ft_checkconfig.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/utilities/ft_checkconfig.m
25,662
utf_8
527ab3c1807053aa9ada10719290edba
function [cfg] = ft_checkconfig(cfg, varargin) % FT_CHECKCONFIG checks the input cfg of the main FieldTrip functions. % % 1: It checks whether the cfg contains all the required options, it gives % a warning when renamed or deprecated options are used, and it makes sure % no forbidden options are used. If necessary and...
github
mccahill/docker-novnc-fmri-master
ft_datatype_source.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/utilities/ft_datatype_source.m
11,599
utf_8
e9dbb6c5a4940f949e44426eb58f678f
function source = ft_datatype_source(source, varargin) % FT_DATATYPE_SOURCE describes the FieldTrip MATLAB structure for data that is % represented at the source level. This is typically obtained with a beamformer of % minimum-norm source reconstruction using FT_SOURCEANALYSIS. % % An example of a source structure obt...
github
mccahill/docker-novnc-fmri-master
ft_determine_coordsys.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/utilities/ft_determine_coordsys.m
12,309
utf_8
676b20adb7e59abf7f0def699c77a896
function [data] = ft_determine_coordsys(data, varargin) % FT_DETERMINE_COORDSYS plots a geometrical object, allowing you to perform % a visual check on the coordinatesystem, the units and on the anatomical % labels for the coordinate system axes. % % Use as % [dataout] = ft_determine_coordsys(datain, ...) % where th...
github
mccahill/docker-novnc-fmri-master
ft_selectdata_new.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/utilities/ft_selectdata_new.m
50,552
utf_8
41004970a6851fcf150e9f3b7200ba94
function [varargout] = ft_selectdata_new(cfg, varargin) % FT_SELECTDATA_NEW is deprecated, please use FT_SELECTDATA instead. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Old documentation for reference %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % This ...
github
mccahill/docker-novnc-fmri-master
ft_hastoolbox.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/utilities/ft_hastoolbox.m
25,228
utf_8
97304711a34e22a0aff74f47a3725dda
function [status] = ft_hastoolbox(toolbox, autoadd, silent) % FT_HASTOOLBOX tests whether an external toolbox is installed. Optionally % it will try to determine the path to the toolbox and install it % automatically. % % Use as % [status] = ft_hastoolbox(toolbox, autoadd, silent) % % autoadd = 0 means that it will ...
github
mccahill/docker-novnc-fmri-master
ft_checkdata.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/utilities/ft_checkdata.m
77,667
utf_8
fc7651affb76820afe00889edaff9338
function [data] = ft_checkdata(data, varargin) % FT_CHECKDATA checks the input data of the main FieldTrip functions, e.g. whether % the type of data strucure corresponds with the required data. If neccessary % and possible, this function will adjust the data structure to the input % requirements (e.g. change dimord, a...
github
mccahill/docker-novnc-fmri-master
nearest.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/utilities/nearest.m
6,234
utf_8
4468e0e45b09d974d56d7219e5e9ff56
function [indx] = nearest(array, val, insideflag, toleranceflag) % NEAREST return the index of an array nearest to a scalar % % Use as % [indx] = nearest(array, val, insideflag, toleranceflag) % % The second input val can be a scalar, or a [minval maxval] vector for % limits selection. % % If not specified or if lef...
github
mccahill/docker-novnc-fmri-master
ft_checkopt.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/utilities/ft_checkopt.m
5,140
utf_8
38274e2a1d9d0ac029879a9ec80e61c9
function opt = ft_checkopt(opt, key, allowedtype, allowedval) % FT_CHECKOPT does a validity test on the types and values of a configuration % structure or cell-array with key-value pairs. % % Use as % opt = ft_checkopt(opt, key) % opt = ft_checkopt(opt, key, allowedtype) % opt = ft_checkopt(opt, key, allowedtype...
github
mccahill/docker-novnc-fmri-master
ft_struct2double.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/utilities/ft_struct2double.m
2,878
utf_8
8b9a93199ee501c885aa1902dcdb0dee
function [x] = ft_struct2double(x, maxdepth) % FT_STRUCT2DOUBLE converts all single precision numeric data in a structure % into double precision. It will also convert plain matrices and % cell-arrays. % % Use as % x = ft_struct2double(x); % % Starting from MATLAB 7.0, you can use single precision data in your % c...
github
mccahill/docker-novnc-fmri-master
printstruct.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/utilities/printstruct.m
5,923
utf_8
03dd2294eaf87dfe81f5b4e888848965
function str = printstruct(name, val) % PRINTSTRUCT converts a MATLAB structure into a multi-line string that can be % interpreted by MATLAB, resulting in the original structure. % % Use as % str = printstruct(val) % or % str = printstruct(name, val) % where "val" is any MATLAB variable, e.g. a scalar, vector, mat...
github
mccahill/docker-novnc-fmri-master
ft_datatype_raw.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/utilities/ft_datatype_raw.m
11,132
utf_8
ed145c9fbe726e9b6e34d1a81e7a4043
function data = ft_datatype_raw(data, varargin) % FT_DATATYPE_RAW describes the FieldTrip MATLAB structure for raw data % % The raw datatype represents sensor-level time-domain data typically % obtained after calling FT_DEFINETRIAL and FT_PREPROCESSING. It contains % one or multiple segments of data, each represented ...
github
mccahill/docker-novnc-fmri-master
ft_version.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/utilities/ft_version.m
20,526
utf_8
4bdc03eff3d3001220283cab06b97fa2
function [ftver, ftpath] = ft_version(cmd) % FT_VERSION returns the version and installation directory of FieldTrip % % FieldTrip is not released with version numbers as "2.0", "2.1", etc. Instead, we % have a Subversion (SVN) development version and a daily FTP release version. % % The SVN development version is labe...
github
mccahill/docker-novnc-fmri-master
ft_selectdata.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/utilities/ft_selectdata.m
47,940
utf_8
9e2932161f3729c2b1fafb36b6f9cd5b
function [varargout] = ft_selectdata(varargin) % FT_SELECTDATA makes a selection in the input data along specific data % dimensions, such as channels, time, frequency, trials, etc. It can also % be used to average the data along each of the specific dimensions. % % Use as % [data] = ft_selectdata(cfg, data, ...) % % ...
github
mccahill/docker-novnc-fmri-master
ft_transform_geometry.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/utilities/ft_transform_geometry.m
4,086
utf_8
bc8d2ce59706b2c41ec98e6d575abb4d
function [output] = ft_transform_geometry(transform, input) % FT_TRANSFORM_GEOMETRY applies a homogeneous coordinate transformation to % a structure with geometric information. These objects include: % - volume conductor geometry, consisting of a mesh, a set of meshes, a % single sphere, or multiple spheres. % ...
github
mccahill/docker-novnc-fmri-master
getdimord.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/utilities/private/getdimord.m
18,939
utf_8
7602345b5b12d24e2e0612acc7731b4d
function dimord = getdimord(data, field, varargin) % GETDIMORD % % Use as % dimord = getdimord(data, field) % % See also GETDIMSIZ if ~isfield(data, field) && isfield(data, 'avg') && isfield(data.avg, field) field = ['avg.' field]; elseif ~isfield(data, field) && isfield(data, 'trial') && isfield(data.trial, fiel...
github
mccahill/docker-novnc-fmri-master
pinvNx2.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/utilities/private/pinvNx2.m
1,115
utf_8
f3995af2f68c58ae1810bd10b370ed07
function y = pinvNx2(x) % PINVNX2 computes a pseudo-inverse of the slices of an Nx2xM real-valued matrix. % Output has dimensionality 2xNxM. This implementation is generally faster % than calling pinv in a for-loop, once M > 2 siz = [size(x) 1]; xtx = zeros([2,2,siz(3:end)]); xtx(1,1,:,:) = sum(x(:,1,:,:).^2,1); xtx...
github
mccahill/docker-novnc-fmri-master
individual2sn.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/utilities/private/individual2sn.m
5,003
utf_8
41e80c4e5da6a907ba8391ae1d245c29
function [warped]= individual2sn(P, input) % INDIVIDUAL2SN warps the input coordinates (defined as Nx3 matrix) from % individual headspace coordinates into normalised MNI coordinates, using the % (inverse of the) warp parameters defined in the structure spmparams. % % this is code inspired by nutmeg and spm: nut_mri2m...
github
mccahill/docker-novnc-fmri-master
warning_once.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/utilities/private/warning_once.m
7,284
utf_8
ea3a917360f20c39c7ff823b1c1c5028
function [ws warned] = warning_once(varargin) % % WARNING_ONCE will throw a warning for every unique point in the % stacktrace only, e.g. in a for-loop a warning is thrown only once. % % Use as one of the following % warning_once(string) % warning_once(id, string) % Alternatively, you can use warning_once using a t...
github
mccahill/docker-novnc-fmri-master
getdimsiz.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/utilities/private/getdimsiz.m
1,601
utf_8
bd44c3d3917f25521cd5c01d896ce113
function dimsiz = getdimsiz(data, field) % GETDIMSIZ % % Use as % dimsiz = getdimsiz(data, field) % % See also GETDIMORD if ~isfield(data, field) && isfield(data, 'avg') && isfield(data.avg, field) field = ['avg.' field]; elseif ~isfield(data, field) && isfield(data, 'trial') && isfield(data.trial, field) field...
github
mccahill/docker-novnc-fmri-master
project_elec.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/utilities/private/project_elec.m
3,850
utf_8
ef202b133e8b7ab407250b6761a4c4d4
function [el, prj] = project_elec(elc, pnt, tri) % PROJECT_ELEC projects electrodes on a triangulated surface % and returns triangle index, la/mu parameters and distance % % Use as % [el, prj] = project_elec(elc, pnt, tri) % which returns % el = Nx4 matrix with [tri, la, mu, dist] for each electrode % prj ...
github
mccahill/docker-novnc-fmri-master
ft_plot_sens.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/plotting/ft_plot_sens.m
6,255
utf_8
8c0653f6aea60a502ca9e8e0188458c0
function hs = ft_plot_sens(sens, varargin) % FT_PLOT_SENS plots the position of the channels in the EEG or MEG sensor array % % Use as % ft_plot_sens(sens, ...) % where the first argument is the sensor array as returned by READ_SENS % or PREPARE_VOL_SENS. % % Optional input arguments should come in key-value pairs a...
github
mccahill/docker-novnc-fmri-master
ft_plot_montage.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/plotting/ft_plot_montage.m
6,934
utf_8
f2677afa07aeeb63ad280a65c8bb2bad
function ft_plot_montage(dat, varargin) % FT_PLOT_MONTAGE makes a montage of a 3-D array by selecting slices at % regular distances and combining them in one large 2-D image. % % Use as % ft_plot_montage(dat, ...) % where dat is a 3-D array. % % Additional options should be specified in key-value pairs and can be %...
github
mccahill/docker-novnc-fmri-master
ft_select_point.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/plotting/ft_select_point.m
3,476
utf_8
728ce8d41999ac98d8f684683a4d0ff3
function [selected] = ft_select_point(pos, varargin) % FT_SELECT_POINT helper function for selecting a one or multiple points in the % current figure using the mouse. It returns a list of the [x y] coordinates of the % selected points. % % Use as % [selected] = ft_select_point(pos, ...) % % % Optional input argument...
github
mccahill/docker-novnc-fmri-master
ft_plot_slice.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/plotting/ft_plot_slice.m
13,734
utf_8
151432d649f0b11b618c00e3e5a6b6dc
function [h, T2] = ft_plot_slice(dat, varargin) % FT_PLOT_SLICE cuts a 2-D slice from a 3-D volume and interpolates if needed % % Use as % ft_plot_slice(dat, ...) % ft_plot_slice(dat, mask, ...) % where dat and mask are equal-sized 3-D arrays. % % Additional options should be specified in key-value pairs and can b...
github
mccahill/docker-novnc-fmri-master
ft_select_range.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/plotting/ft_select_range.m
14,255
utf_8
8cc7f18efb68fbf210ca8773c6bc9b5a
function ft_select_range(handle, eventdata, varargin) % FT_SELECT_RANGE is a helper function that can be used as callback function % in a figure. It allows the user to select a horizontal or a vertical % range, or one or multiple boxes. % % The callback function (and it's arguments) specified in callback is called % ...
github
mccahill/docker-novnc-fmri-master
ft_select_channel.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/plotting/ft_select_channel.m
5,764
utf_8
bd22417df7bb364b9f814082c341f75b
function ft_select_channel(handle, eventdata, varargin) % FT_SELECT_CHANNEL is a helper function that can be used as callback function % in a figure. It allows the user to select a channel. The channel labels % are returned. % % Use as % label = ft_select_channel(h, eventdata, ...) % The first two arguments are auto...
github
mccahill/docker-novnc-fmri-master
ft_datatype_sens.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/plotting/private/ft_datatype_sens.m
20,793
utf_8
1a5161e33bdd52cc9dc548f1382cb532
function [sens] = ft_datatype_sens(sens, varargin) % FT_DATATYPE_SENS describes the FieldTrip structure that represents % an EEG, ECoG, or MEG sensor array. This structure is commonly called % "elec" for EEG and "grad" for MEG, or more general "sens" for either % one. % % The structure for MEG gradiometers and/or magn...
github
mccahill/docker-novnc-fmri-master
ptriside.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/plotting/private/ptriside.m
1,257
utf_8
f52f0beb3731b653116c217b37b673d2
function [side] = ptriside(v1, v2, v3, r, tolerance) % PTRISIDE determines the side of a plane on which a set of points lie. it % returns 0 for the points that lie on the plane % % [side] = ptriside(v1, v2, v3, r) % % the side of points r is determined relative to the plane spanned by % vertices v1, v2 and v3. v1,v2 ...
github
mccahill/docker-novnc-fmri-master
ft_convert_units.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/plotting/private/ft_convert_units.m
9,048
utf_8
b0b47d21a2d75a5138e1d3499af2bf96
function [obj] = ft_convert_units(obj, target, varargin) % FT_CONVERT_UNITS changes the geometrical dimension to the specified SI unit. % The units of the input object is determined from the structure field % object.unit, or is estimated based on the spatial extend of the structure, % e.g. a volume conduction model of...
github
mccahill/docker-novnc-fmri-master
ft_apply_montage.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/plotting/private/ft_apply_montage.m
19,718
utf_8
82280137ae6d7db9e4e24fa895096d47
function [input] = ft_apply_montage(input, montage, varargin) % FT_APPLY_MONTAGE changes the montage of an electrode or gradiometer array. A % montage can be used for EEG rereferencing, MEG synthetic gradients, MEG % planar gradients or unmixing using ICA. This function applies the montage % to the inputor array. The ...
github
mccahill/docker-novnc-fmri-master
select3dtool.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/plotting/private/select3dtool.m
2,713
utf_8
fdf7d572638e6ebd059c63f233d26704
function select3dtool(arg) %SELECT3DTOOL A simple tool for interactively obtaining 3-D coordinates % % SELECT3DTOOL(FIG) Specify figure handle % % Example: % surf(peaks); % select3dtool; % % click on surface if nargin<1 arg = gcf; end if ~ishandle(arg) feval(arg); return; end %% initialize gui %% fig...
github
mccahill/docker-novnc-fmri-master
warning_once.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/plotting/private/warning_once.m
7,284
utf_8
ea3a917360f20c39c7ff823b1c1c5028
function [ws warned] = warning_once(varargin) % % WARNING_ONCE will throw a warning for every unique point in the % stacktrace only, e.g. in a for-loop a warning is thrown only once. % % Use as one of the following % warning_once(string) % warning_once(id, string) % Alternatively, you can use warning_once using a t...
github
mccahill/docker-novnc-fmri-master
mesh2edge.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/plotting/private/mesh2edge.m
3,477
utf_8
787befab8f09407ac0979720168bc0bd
function [newbnd] = mesh2edge(bnd) % MESH2EDGE finds the edge lines from a triangulated mesh or the edge surfaces % from a tetrahedral or hexahedral mesh. % % Use as % [bnd] = mesh2edge(bnd) % Copyright (C) 2013, Robert Oostenveld % % This file is part of FieldTrip, see http://www.ru.nl/neuroimaging/fieldtrip % for...
github
mccahill/docker-novnc-fmri-master
intersect_plane.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/plotting/private/intersect_plane.m
2,895
utf_8
b60e6cc7b1037dc523c8c227b1dd359e
function [X, Y, Z, pnt1, tri1, pnt2, tri2] = intersect_plane(pnt, tri, v1, v2, v3) % INTERSECT_PLANE intersection between a triangulated surface and a plane % it returns the coordinates of the vertices which form a contour % % Use as % [X, Y, Z] = intersect_plane(pnt, tri, v1, v2, v3) % % where the intersecting pla...
github
mccahill/docker-novnc-fmri-master
inside_contour.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/plotting/private/inside_contour.m
1,105
utf_8
6554af9f8bc2dc7512e8ca962a63688b
function bool = inside_contour(pos, contour) npos = size(pos,1); ncnt = size(contour,1); x = pos(:,1); y = pos(:,2); minx = min(x); miny = min(y); maxx = max(x); maxy = max(y); bool = true(npos,1); bool(x<minx) = false; bool(y<miny) = false; bool(x>maxx) = false; bool(y>maxy) = false; % the summed angle over the co...
github
mccahill/docker-novnc-fmri-master
ft_specest_mtmconvol.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/specest/ft_specest_mtmconvol.m
20,928
utf_8
4d3949b64634d002ccbf923e7633ec6f
function [spectrum,ntaper,freqoi,timeoi] = ft_specest_mtmconvol(dat, time, varargin) % FT_SPECEST_MTMCONVOL performs wavelet convolution in the time domain by % multiplication in the frequency domain. % % Use as % [spectrum,freqoi,timeoi] = ft_specest_mtmconvol(dat,time,...) % where % dat = matrix of chan*sa...
github
mccahill/docker-novnc-fmri-master
ft_specest_mtmfft.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/specest/ft_specest_mtmfft.m
14,583
utf_8
ac20d0f19dcc1c4b3b4a96c31b45fc34
function [spectrum,ntaper,freqoi] = ft_specest_mtmfft(dat, time, varargin) % FT_SPECEST_MTMFFT computes a fast Fourier transform using multitapering with % multiple tapers from the DPSS sequence or using a variety of single tapers. % % Use as % [spectrum,ntaper,freqoi] = ft_specest_mtmfft(dat,time...) % where % da...
github
mccahill/docker-novnc-fmri-master
warning_once.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/specest/private/warning_once.m
7,284
utf_8
ea3a917360f20c39c7ff823b1c1c5028
function [ws warned] = warning_once(varargin) % % WARNING_ONCE will throw a warning for every unique point in the % stacktrace only, e.g. in a for-loop a warning is thrown only once. % % Use as one of the following % warning_once(string) % warning_once(id, string) % Alternatively, you can use warning_once using a t...
github
mccahill/docker-novnc-fmri-master
getdimord.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/private/getdimord.m
18,939
utf_8
7602345b5b12d24e2e0612acc7731b4d
function dimord = getdimord(data, field, varargin) % GETDIMORD % % Use as % dimord = getdimord(data, field) % % See also GETDIMSIZ if ~isfield(data, field) && isfield(data, 'avg') && isfield(data.avg, field) field = ['avg.' field]; elseif ~isfield(data, field) && isfield(data, 'trial') && isfield(data.trial, fiel...
github
mccahill/docker-novnc-fmri-master
pinvNx2.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/private/pinvNx2.m
1,115
utf_8
f3995af2f68c58ae1810bd10b370ed07
function y = pinvNx2(x) % PINVNX2 computes a pseudo-inverse of the slices of an Nx2xM real-valued matrix. % Output has dimensionality 2xNxM. This implementation is generally faster % than calling pinv in a for-loop, once M > 2 siz = [size(x) 1]; xtx = zeros([2,2,siz(3:end)]); xtx(1,1,:,:) = sum(x(:,1,:,:).^2,1); xtx...
github
mccahill/docker-novnc-fmri-master
avw_hdr_make.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/private/avw_hdr_make.m
4,182
utf_8
df97baf07b917c62db1cde33abfc8416
function [ avw ] = avw_hdr_make % AVW_HDR_MAKE - Create Analyze format data header (avw.hdr) % % [ avw ] = avw_hdr_make % % avw.hdr - a struct, all fields returned from the header. % For details, find a good description on the web % or see the Analyze File Format pdf in the % mri_toolb...
github
mccahill/docker-novnc-fmri-master
prepare_mesh_headshape.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/private/prepare_mesh_headshape.m
9,387
utf_8
c4c7bdd0280d2610562a78b117c2db16
function bnd = prepare_mesh_headshape(cfg) % PREPARE_MESH_HEADSHAPE % % See also PREPARE_MESH_MANUAL, PREPARE_MESH_SEGMENTATION % Copyrights (C) 2009, Robert Oostenveld % % This file is part of FieldTrip, see http://www.ru.nl/neuroimaging/fieldtrip % for the documentation and details. % % FieldTrip is free softwar...
github
mccahill/docker-novnc-fmri-master
normals.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/private/normals.m
2,582
utf_8
4c682f86158767f0f1a3a1dd8ec57998
function [nrm] = normals(pnt, tri, opt) % NORMALS compute the surface normals of a triangular mesh % for each triangle or for each vertex % % [nrm] = normals(pnt, tri, opt) % where opt is either 'vertex' or 'triangle' % Copyright (C) 2002-2007, Robert Oostenveld % % This file is part of FieldTrip, see http://www.ru.n...
github
mccahill/docker-novnc-fmri-master
rejectvisual_trial.m
.m
docker-novnc-fmri-master/mri/spm12/external/fieldtrip/private/rejectvisual_trial.m
9,360
utf_8
70c608ed1010a7f2dde378e7ceb36ea1
function [chansel, trlsel, cfg] = rejectvisual_trial(cfg, data) % SUBFUNCTION for ft_rejectvisual % determine the initial selection of trials ntrl = length(data.trial); if isequal(cfg.trials, 'all') % support specification like 'all' cfg.trials = 1:ntrl; end trlsel = false(1,ntrl); trlsel(cfg.trials) = true; % de...