plateform stringclasses 1
value | repo_name stringlengths 13 113 | name stringlengths 3 74 | ext stringclasses 1
value | path stringlengths 12 229 | size int64 23 843k | source_encoding stringclasses 9
values | md5 stringlengths 32 32 | text stringlengths 23 843k |
|---|---|---|---|---|---|---|---|---|
github | lcnhappe/happe-master | ft_analysispipeline.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_analysispipeline.m | 26,488 | utf_8 | 6bafec86c50ded1898215065e0d9da10 | 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 | lcnhappe/happe-master | ft_freqbaseline.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_freqbaseline.m | 6,802 | utf_8 | e4e887917081deb423ef3b59f99497b1 | 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 | lcnhappe/happe-master | ft_sourceinterpolate.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_sourceinterpolate.m | 26,491 | utf_8 | 1e48e1da73c6a1582abf8378c324f996 | function [interp] = ft_sourceinterpolate(cfg, functional, anatomical)
% FT_SOURCEINTERPOLATE interpolates source activity or statistical maps onto the
% voxels or vertices of an anatomical description of the brain. Both the functional
% and the anatomical data can either describe a volumetric 3D regular grid, a
% tri... |
github | lcnhappe/happe-master | ft_megplanar.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_megplanar.m | 16,100 | utf_8 | 018d90ee64dbbd703cf6575665f3e5f1 | 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 | lcnhappe/happe-master | ft_movieplotTFR.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_movieplotTFR.m | 17,026 | utf_8 | 76fa25699ee966caae0c04b52d9eabea | 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 | lcnhappe/happe-master | ft_volumerealign.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_volumerealign.m | 81,513 | utf_8 | 3af8300d106ef74f24d3ed3a77669407 | 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 | lcnhappe/happe-master | ft_qualitycheck.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_qualitycheck.m | 25,590 | utf_8 | a401e78252691eab2e35c944b5a3c39b | 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 | lcnhappe/happe-master | ft_denoise_pca.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_denoise_pca.m | 17,813 | utf_8 | ae42782c1e01befe56fb6dfb726bdc5e | 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 | lcnhappe/happe-master | ft_sensorrealign.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_sensorrealign.m | 35,660 | utf_8 | 72c147097c88c1c750a4b90386ece4b4 | 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 | lcnhappe/happe-master | ft_databrowser.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_databrowser.m | 95,614 | utf_8 | 24d0f781128b15ffc93ac40b8f45feff | 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 | lcnhappe/happe-master | ft_singleplotER.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_singleplotER.m | 30,630 | utf_8 | b819e880153de426498ff70b6e529657 | 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 | lcnhappe/happe-master | ft_mvaranalysis.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_mvaranalysis.m | 21,401 | utf_8 | 88f54e5e33f474697f30b35bf0c74510 | 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 | lcnhappe/happe-master | ft_anonimizedata.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_anonimizedata.m | 12,569 | utf_8 | 3b844ea1cf97b9bfafad5d759646ddfc | 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 | lcnhappe/happe-master | ft_electrodeplacement.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_electrodeplacement.m | 49,055 | utf_8 | ef6d8bd86678d2f9b53b60cb5f8afb17 | function [elec] = ft_electrodeplacement(cfg, varargin)
% FT_ELECTRODEPLACEMENT allows placing electrodes on a volume or headshape.
% The different methods are described in detail below.
%
% VOLUME - Navigate an orthographic display of a volume (e.g. CT or
% MR scan), and assign an electrode label to the current crossh... |
github | lcnhappe/happe-master | ft_sourceplot.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_sourceplot.m | 66,934 | utf_8 | ac9cf37d2c1a5f847260b28941afca09 | 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 | lcnhappe/happe-master | ft_statistics_stats.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_statistics_stats.m | 12,353 | utf_8 | d5721c810b45a74a5c1ef735d4711acc | function [stat, cfg] = ft_statistics_stats(cfg, dat, design)
% FT_STATISTICS_STATS performs a massive univariate statistical test using the
% MATLAB statistics toolbox. This function should not be called directly,
% instead you should call the function that is associated with the type of data
% on which you want to pe... |
github | lcnhappe/happe-master | ft_megrealign.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_megrealign.m | 18,741 | utf_8 | 70c06177fc1b0bc68db90decccf0589b | 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 | lcnhappe/happe-master | ft_volumelookup.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_volumelookup.m | 14,555 | utf_8 | 85db9e3295336353532219bebdf32b95 | 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 | lcnhappe/happe-master | ft_multiplotTFR.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_multiplotTFR.m | 30,950 | utf_8 | 785cbcd905ef5ff77519037ef9da1a2d | 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 | lcnhappe/happe-master | ft_connectivityanalysis.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_connectivityanalysis.m | 41,951 | utf_8 | 0d5870627ccd8b4bbcef93cede262474 | function [stat] = ft_connectivityanalysis(cfg, data)
% FT_CONNECTIVITYANALYSIS computes various measures of connectivity between
% MEG/EEG channels or between source-level signals.
%
% Use as
% stat = ft_connectivityanalysis(cfg, data)
% stat = ft_connectivityanalysis(cfg, timelock)
% stat = ft_connectivityanaly... |
github | lcnhappe/happe-master | ft_defaults.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_defaults.m | 13,356 | utf_8 | 0fc0a3d3c7e67d69d12f3fb15f856bc1 | 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 | lcnhappe/happe-master | ft_prepare_neighbours.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_prepare_neighbours.m | 13,251 | utf_8 | 07eb375aeb41eb43bd565f6470060f88 | 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 | lcnhappe/happe-master | ft_crossfrequencyanalysis.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_crossfrequencyanalysis.m | 9,389 | utf_8 | 64b924a3625f4df0dcd5baaae904a6cf | 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
% an... |
github | lcnhappe/happe-master | ft_conjunctionanalysis.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_conjunctionanalysis.m | 8,875 | utf_8 | 106b6a2753353fed3cf27ea9b1fb1da7 | 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 mask... |
github | lcnhappe/happe-master | ft_sliceinterp.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_sliceinterp.m | 18,635 | utf_8 | f2c5c3de8b6b941ac0dda303889261a2 | 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
%
%... |
github | lcnhappe/happe-master | ft_clusterplot.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_clusterplot.m | 18,675 | utf_8 | 5b3eefd9bad8ee441352bfaa996bfcdc | 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 | lcnhappe/happe-master | ft_sourcemovie.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_sourcemovie.m | 27,386 | utf_8 | e4209fc342ee8d918587cffc2dfc2d6e | 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 | lcnhappe/happe-master | ft_sourcedescriptives.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_sourcedescriptives.m | 50,287 | utf_8 | 6f54ea734332fd49fc0a7a16e886c4e3 | 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 | lcnhappe/happe-master | ft_defacevolume.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_defacevolume.m | 16,914 | utf_8 | 5f4be3aba9099ccccbf2f1a745004df0 | function mri = ft_defacevolume(cfg, mri)
% FT_DEFACEVOLUME allows you to de-identify an anatomical MRI by erasing specific regions, such as the face and ears. The graphical
% user interface allows you to position a box over the anatomical data inside which
% all anatomical voxel values will be replaced by zero. You mi... |
github | lcnhappe/happe-master | ft_freqanalysis_mvar.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_freqanalysis_mvar.m | 8,209 | utf_8 | 455f4261f748338ec12c74948fbda55b | 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 | lcnhappe/happe-master | ft_math.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_math.m | 17,813 | utf_8 | c90f403d7bc6a7bb69ba1a6fb9b5b61f | 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 the input and the configuration
% structure cfg in wh... |
github | lcnhappe/happe-master | ft_removetmsartifact.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_removetmsartifact.m | 11,406 | utf_8 | 422128cb8363b94785f8e75e0e5abce4 | 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 at http://www.fieldtriptoolbox.org/tutorial/tms-eeg
% %%
%
% Use as
% data = ft_removetmsartifact(cfg... |
github | lcnhappe/happe-master | ft_interactiverealign.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_interactiverealign.m | 22,918 | utf_8 | 5ef189d255cecff5ebfcdd4c7b876b59 | 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 | lcnhappe/happe-master | ft_neighbourplot.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_neighbourplot.m | 14,397 | utf_8 | 775e543981ae4a5e32195c20d0bbdde8 | 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 | lcnhappe/happe-master | ft_appendfreq.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_appendfreq.m | 14,982 | utf_8 | cb5cb36f0468f54d1ad2e83c9b40ee46 | 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 | lcnhappe/happe-master | ft_electroderealign.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_electroderealign.m | 38,512 | utf_8 | 66eebcaea5b14ce2be2ddce9abd44d98 | function [elec_realigned] = ft_electroderealign(cfg, elec_original)
% FT_ELECTRODEREALING rotates, translates, scales and warps electrode positions. The
% default is to only rotate and translate, i.e. to do a rigid body transformation in
% which only the coordinate system is changed. With the right settings if can app... |
github | lcnhappe/happe-master | ft_singleplotTFR.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_singleplotTFR.m | 25,551 | utf_8 | c1e10cb941401df2b09074cf6edb3bf3 | 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 | lcnhappe/happe-master | ft_prepare_sourcemodel.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_prepare_sourcemodel.m | 34,786 | utf_8 | 2a141b62a7f6242462a4682d7abf426b | function [grid, cfg] = ft_prepare_sourcemodel(cfg, headmodel, 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_pre... |
github | lcnhappe/happe-master | ft_multiplotER.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_multiplotER.m | 35,324 | utf_8 | 39694d442a64d6dd2c92402f20d2f942 | 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 | lcnhappe/happe-master | ft_prepare_mesh.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_prepare_mesh.m | 9,219 | utf_8 | ee790b2287e954598ed510afb471183a | 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. FT_PREPARE_MESH can be us... |
github | lcnhappe/happe-master | fieldtrip2fiff.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fieldtrip2fiff.m | 10,130 | utf_8 | bce65d78216fd8c34de7e249b66f54d4 | function fieldtrip2fiff(filename, data)
% FIELDTRIP2FIFF saves a FieldTrip raw data structure as a fiff-file, allowing it
% to be further analyzed by the Elekta/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 ... |
github | lcnhappe/happe-master | ft_artifact_zvalue.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_artifact_zvalue.m | 48,529 | utf_8 | d7f68586d26f9a1b0725e1f63f4b08ad | 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 | lcnhappe/happe-master | ft_sourceparcellate.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_sourceparcellate.m | 17,075 | utf_8 | a75c59fcd439e6245d86f4a5ad81ccb6 | 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 | lcnhappe/happe-master | besa2fieldtrip.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/besa2fieldtrip.m | 16,198 | utf_8 | 0c7a9f9810b768eb90d6a2e7ffeeab37 | 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 should ... |
github | lcnhappe/happe-master | ft_topoplotCC.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/ft_topoplotCC.m | 12,799 | utf_8 | 8416ba741caf630c1c2b3a2fc78e6ff8 | 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 | lcnhappe/happe-master | ft_struct2single.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/ft_struct2single.m | 2,879 | utf_8 | 8bbd1d96564795e5223a0cac06d604c8 | 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)
%
% Sta... |
github | lcnhappe/happe-master | ft_channelselection.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/ft_channelselection.m | 21,775 | utf_8 | 45acb4edda264cd6b5cd506dfde62c48 | 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 | lcnhappe/happe-master | ft_datatype_sens.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/ft_datatype_sens.m | 22,743 | utf_8 | fab01996ef9a98c643827fb2767fbaf3 | 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, "grad" for MEG,
% "opto" for NIRS, or general "sens" for either one.
%
% For all sensor types a distinction shou... |
github | lcnhappe/happe-master | ft_datatype.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/ft_datatype.m | 10,068 | utf_8 | 0a0165e618d5828bde6132b5a5a7a2f2 | 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, montage, event.
%
% Use as
% [type, dimord] = ft_datatype(data)
% [status] = ft_... |
github | lcnhappe/happe-master | ft_checkconfig.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/ft_checkconfig.m | 25,828 | utf_8 | dc8f84be30850438906132f672928729 | function [cfg] = ft_checkconfig(cfg, varargin)
% FT_CHECKCONFIG checks the input cfg of the main FieldTrip functions
% in three steps.
%
% 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.... |
github | lcnhappe/happe-master | ft_datatype_source.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/ft_datatype_source.m | 12,246 | utf_8 | ab7ac36100ef0e75b5989d6870ea0bbf | 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 o... |
github | lcnhappe/happe-master | ft_warp_dykstra2012.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/ft_warp_dykstra2012.m | 5,113 | utf_8 | f62b920eb747153a6abe6350a926cc1b | function [coord_snapped] = ft_warp_dykstra2012(coord, surf, feedback)
% FT_WARP_DYKSTRA2012 projects the ECoG grid / strip onto a cortex hull
% while minimizing the distance from original positions and the
% deformation of the grid. To align ECoG electrodes to the pial surface,
% you first need to compute the cortex h... |
github | lcnhappe/happe-master | ft_test_result.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/ft_test_result.m | 7,436 | utf_8 | a28cd88cb3548c06087d0b49b4d8b15b | function results = ft_test_result(varargin)
% FT_TEST_RESULT checks the status of selected test scripts on the FieldTrip dashboard
%
% To get all dashboard results as a structure array, you would do
% result = ft_test_result
%
% To print a table with the results on screen, you would do
% ft_test_result comparerevi... |
github | lcnhappe/happe-master | ft_warning.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/ft_warning.m | 7,789 | utf_8 | d832a7ad5e2f9bb42995e6e5d4caa198 | function [ws, warned] = ft_warning(varargin)
% FT_WARNING 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
% ft_warning(string)
% ft_warning(id, string)
% Alternatively, you can use ft_warning using a timeout
% ... |
github | lcnhappe/happe-master | ft_selectdata_new.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/ft_selectdata_new.m | 50,624 | utf_8 | 9a80958f482cd3233df091925dbdcaa9 | function [varargout] = ft_selectdata_new(cfg, varargin)
% FT_SELECTDATA_NEW is deprecated, please use FT_SELECTDATA instead.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Old documentation for reference
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This ... |
github | lcnhappe/happe-master | ft_hastoolbox.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/ft_hastoolbox.m | 24,831 | utf_8 | 43bae19e25ce108f013f1c401e497630 | 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 | lcnhappe/happe-master | ft_test_run.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/ft_test_run.m | 6,568 | utf_8 | dfb4c969efe2182d441bddabe08d3dc6 | function status = ft_test_run(varargin)
% FT_TEST_RUN executes selected FieldTrip test scripts. It checks whether each test
% script runs without problems as indicated by an explicit error and posts the
% results on the FieldTrip dashboard.
%
% Use as
% ft_test_run functionname
%
% Additional optional arguments are ... |
github | lcnhappe/happe-master | ft_checkdata.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/ft_checkdata.m | 57,523 | utf_8 | 361ae795581b786433b88af3f624763d | 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 | lcnhappe/happe-master | nearest.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/nearest.m | 6,174 | utf_8 | e7381a0e2eb9c75fcbb90e07f575a6ae | 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 | lcnhappe/happe-master | ft_checkopt.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/ft_checkopt.m | 5,085 | utf_8 | c8bce4359cc4a8be5591788b5984166d | 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 | lcnhappe/happe-master | ft_struct2double.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/ft_struct2double.m | 2,812 | utf_8 | 862ae4b495515d398d89bfab714c0e10 | 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
% comp... |
github | lcnhappe/happe-master | printstruct.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/printstruct.m | 6,112 | utf_8 | e5ecd75e63c034fa964cc6f7976c1f23 | 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 | lcnhappe/happe-master | ft_datatype_raw.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/ft_datatype_raw.m | 11,069 | utf_8 | 03bdcca0ba9819b1dd39d0c90de61ee3 | 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 represente... |
github | lcnhappe/happe-master | ft_compile_mex.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/ft_compile_mex.m | 7,899 | utf_8 | af2e1571d581fe3e6893aebec491bb67 | 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 a Bash script. In case you are not working with Git and
% you want to recompile the mex fil... |
github | lcnhappe/happe-master | ft_selectdata.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/ft_selectdata.m | 49,158 | utf_8 | 7a2848867b0ce4107732993c753c7589 | 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 | lcnhappe/happe-master | ft_transform_geometry.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/ft_transform_geometry.m | 4,001 | utf_8 | 65ab78e845b70fd7afc0d6c59e0fc89e | function [output] = ft_transform_geometry(transform, input)
% FT_TRANSFORM_GEOMETRY applies a homogeneous coordinate transformation to
% a structure with geometric information, for example a volume conduction model
% for the head, gradiometer of electrode structure containing EEG or MEG
% sensor positions and MEG coil... |
github | lcnhappe/happe-master | getdimord.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/private/getdimord.m | 20,107 | utf_8 | 706f4f45a5d4ae7535c204b8c010f76b | function dimord = getdimord(data, field, varargin)
% GETDIMORD
%
% Use as
% dimord = getdimord(data, field)
%
% See also GETDIMSIZ, GETDATFIELD
if ~isfield(data, field) && isfield(data, 'avg') && isfield(data.avg, field)
field = ['avg.' field];
elseif ~isfield(data, field) && isfield(data, 'trial') && isfield(dat... |
github | lcnhappe/happe-master | pinvNx2.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/private/pinvNx2.m | 1,116 | utf_8 | a10c4b3cf66f4a8756fdb95d62b5e04a | 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 | lcnhappe/happe-master | individual2sn.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/private/individual2sn.m | 4,944 | utf_8 | 8972e941e1b5082b8d0c29a8c3f70454 | 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 | lcnhappe/happe-master | ft_platform_supports.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/private/ft_platform_supports.m | 9,557 | utf_8 | eb0e55d84d57e6873cce8df6cad90d96 | function tf = ft_platform_supports(what,varargin)
% FT_PLATFORM_SUPPORTS returns a boolean indicating whether the current platform
% supports a specific capability
%
% Usage:
% tf = ft_platform_supports(what)
% tf = ft_platform_supports('matlabversion', min_version, max_version)
%
% The following values are allowe... |
github | lcnhappe/happe-master | getdimsiz.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/private/getdimsiz.m | 2,235 | utf_8 | 340d495a654f2f6752aa1af7ac915390 | function dimsiz = getdimsiz(data, field)
% GETDIMSIZ
%
% Use as
% dimsiz = getdimsiz(data, field)
%
% If the length of the vector that is returned is smaller than the
% number of dimensions that you would expect from GETDIMORD, you
% should assume that it has trailing singleton dimensions.
%
% Example use
% dimord... |
github | lcnhappe/happe-master | project_elec.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/utilities/private/project_elec.m | 3,791 | utf_8 | 61bc3f095e4ced1311048c06823bb037 | 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 | lcnhappe/happe-master | peerslave.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/peer/peerslave.m | 8,422 | utf_8 | 196853955545e0384a80090dff57d1e1 | function peerslave(varargin)
% PEERSLAVE starts the low-level peer services and switches to slave mode.
% Subsequently it will wait untill a job comes in and execute it.
%
% Use as
% peerslave(...)
%
% Optional input arguments should be passed as key-value pairs. The
% following options are available to limit the pe... |
github | lcnhappe/happe-master | peercellfun.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/peer/peercellfun.m | 24,302 | utf_8 | 3754d5d1bf8da977815e1ebf1080f286 | function varargout = peercellfun(fname, varargin)
% PEERCELLFUN applies a function to each element of a cell-array. The
% function execution is done in parallel on all avaialble peers.
%
% Use as
% argout = peercellfun(fname, x1, x2, ...)
%
% This function has a number of optional arguments that have to passed
% as ... |
github | lcnhappe/happe-master | print_mem.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/peer/private/print_mem.m | 432 | utf_8 | 2aec5a412cc63c6c38e768ddba2bf30c | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% SUBFUNCTION for pretty-printing
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function str = print_mem(val)
if val<1024
str = sprintf('%d bytes', val);
elseif val<1024^2
str = sprintf('%.1f KB', val/102... |
github | lcnhappe/happe-master | ft_platform_supports.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/peer/private/ft_platform_supports.m | 9,557 | utf_8 | eb0e55d84d57e6873cce8df6cad90d96 | function tf = ft_platform_supports(what,varargin)
% FT_PLATFORM_SUPPORTS returns a boolean indicating whether the current platform
% supports a specific capability
%
% Usage:
% tf = ft_platform_supports(what)
% tf = ft_platform_supports('matlabversion', min_version, max_version)
%
% The following values are allowe... |
github | lcnhappe/happe-master | ft_plot_sens.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/plotting/ft_plot_sens.m | 12,664 | utf_8 | 2fa8bf27fb2d400b192ebf7e24e2a1bb | function hs = ft_plot_sens(sens, varargin)
% FT_PLOT_SENS plots the position of all channels or coils that comprise the EEG or
% MEG sensor array description
%
% Use as
% ft_plot_sens(sens, ...)
% where the first argument is the sensor array as returned by FT_READ_SENS or
% by FT_PREPARE_VOL_SENS.
%
% Optional input... |
github | lcnhappe/happe-master | ft_plot_montage.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/plotting/ft_plot_montage.m | 6,988 | utf_8 | 4a804759bff8cad4c6b860a900990b77 | 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 | lcnhappe/happe-master | ft_select_point.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/plotting/ft_select_point.m | 3,409 | utf_8 | dce9dd259e854da9fb1630782705e4ff | 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 arguments ... |
github | lcnhappe/happe-master | ft_plot_slice.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/plotting/ft_plot_slice.m | 15,682 | utf_8 | f036338d1094cbb7ff4a6ba748e8d3db | 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 | lcnhappe/happe-master | ft_select_range.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/plotting/ft_select_range.m | 14,189 | utf_8 | 302ad7dece8f9e09963ca038ce060824 | 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 | lcnhappe/happe-master | ft_plot_axes.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/plotting/ft_plot_axes.m | 5,531 | utf_8 | 2d76425ace6d8a6d80c3d90c26650c78 | function ft_plot_axes(object, varargin)
% FT_PLOT_AXES adds three axes of 150 mm and a 10 mm sphere at the origin to the
% present 3-D figure. The axes and sphere are scaled according to the units of the
% geometrical object that is passed to this function. Furthermore, when possible,
% the axes labels will represent ... |
github | lcnhappe/happe-master | ft_select_channel.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/plotting/ft_select_channel.m | 5,700 | utf_8 | ba3d1a96f9f4cecda939faa6f1298b81 | 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 | lcnhappe/happe-master | ft_datatype_sens.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/plotting/private/ft_datatype_sens.m | 22,743 | utf_8 | fab01996ef9a98c643827fb2767fbaf3 | 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, "grad" for MEG,
% "opto" for NIRS, or general "sens" for either one.
%
% For all sensor types a distinction shou... |
github | lcnhappe/happe-master | ptriside.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/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 | lcnhappe/happe-master | ft_convert_units.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/plotting/private/ft_convert_units.m | 10,207 | utf_8 | d3c04f1222517baf2f069d68e3dd6abe | 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 | lcnhappe/happe-master | ft_apply_montage.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/plotting/private/ft_apply_montage.m | 21,632 | utf_8 | 44431986d20b2a03b833ec06858af91d | 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 input EEG or MEG se... |
github | lcnhappe/happe-master | select3dtool.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/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 | lcnhappe/happe-master | ft_platform_supports.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/plotting/private/ft_platform_supports.m | 9,557 | utf_8 | eb0e55d84d57e6873cce8df6cad90d96 | function tf = ft_platform_supports(what,varargin)
% FT_PLATFORM_SUPPORTS returns a boolean indicating whether the current platform
% supports a specific capability
%
% Usage:
% tf = ft_platform_supports(what)
% tf = ft_platform_supports('matlabversion', min_version, max_version)
%
% The following values are allowe... |
github | lcnhappe/happe-master | ft_warning.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/plotting/private/ft_warning.m | 7,789 | utf_8 | d832a7ad5e2f9bb42995e6e5d4caa198 | function [ws, warned] = ft_warning(varargin)
% FT_WARNING 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
% ft_warning(string)
% ft_warning(id, string)
% Alternatively, you can use ft_warning using a timeout
% ... |
github | lcnhappe/happe-master | mesh2edge.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/plotting/private/mesh2edge.m | 3,713 | utf_8 | 410baaa2ca114acab82443de9a844a68 | function [newbnd] = mesh2edge(bnd)
% MESH2EDGE finds the edge lines from a triangulated mesh or the edge
% surfaces from a tetrahedral or hexahedral mesh. An edge is defined as an
% element that does not border any other element. This also implies that a
% closed triangulated surface has no edges.
%
% Use as
% [edge... |
github | lcnhappe/happe-master | intersect_plane.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/plotting/private/intersect_plane.m | 2,842 | utf_8 | b975e248e2a82787c16084c79547fd9d | 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 | lcnhappe/happe-master | inside_contour.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/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 | lcnhappe/happe-master | enginecellfun.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/engine/enginecellfun.m | 11,478 | utf_8 | 3cd2f39f096029c7a0cdfa80414a36bf | function varargout = enginecellfun(fname, varargin)
% ENGINECELLFUN applies a function to each element of a cell-array. The function
% execution is done in parallel on locally or remotely running MATLAB engines.
%
% Use as
% argout = enginecellfun(fname, x1, x2, ...)
%
% Optional arguments can be specified in key-va... |
github | lcnhappe/happe-master | ft_platform_supports.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/engine/private/ft_platform_supports.m | 9,557 | utf_8 | eb0e55d84d57e6873cce8df6cad90d96 | function tf = ft_platform_supports(what,varargin)
% FT_PLATFORM_SUPPORTS returns a boolean indicating whether the current platform
% supports a specific capability
%
% Usage:
% tf = ft_platform_supports(what)
% tf = ft_platform_supports('matlabversion', min_version, max_version)
%
% The following values are allowe... |
github | lcnhappe/happe-master | ft_warning.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/engine/private/ft_warning.m | 7,789 | utf_8 | d832a7ad5e2f9bb42995e6e5d4caa198 | function [ws, warned] = ft_warning(varargin)
% FT_WARNING 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
% ft_warning(string)
% ft_warning(id, string)
% Alternatively, you can use ft_warning using a timeout
% ... |
github | lcnhappe/happe-master | ft_specest_mtmconvol.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/specest/ft_specest_mtmconvol.m | 21,073 | utf_8 | b5608f0bb24aca60fd1c5df6e8299018 | 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,ntaper,freqoi,timeoi] = ft_specest_mtmconvol(dat,time,...)
% where input
% dat = matr... |
github | lcnhappe/happe-master | ft_specest_mtmfft.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/specest/ft_specest_mtmfft.m | 14,511 | utf_8 | b163b64586570687c72bc376ea856ea1 | 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 | lcnhappe/happe-master | ft_warning.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/specest/private/ft_warning.m | 7,789 | utf_8 | d832a7ad5e2f9bb42995e6e5d4caa198 | function [ws, warned] = ft_warning(varargin)
% FT_WARNING 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
% ft_warning(string)
% ft_warning(id, string)
% Alternatively, you can use ft_warning using a timeout
% ... |
github | lcnhappe/happe-master | ft_nonlinearassociation.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/contrib/misc/ft_nonlinearassociation.m | 13,980 | utf_8 | 8eddc691a3520b09cedcd32f211f3e34 | function [association] = nonlinearassociation(cfg, data)
% NONLINEARASSOCIATION calculate the association coefficient as a
% function of delay.
%
% In order to estimate the amount of association between all possible
% pairs of MEG sensors the nonlinear association analysis is used.
% It was first developed for EEG dat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.