plateform stringclasses 1
value | repo_name stringlengths 13 113 | name stringlengths 3 74 | ext stringclasses 1
value | path stringlengths 12 229 | size int64 23 843k | source_encoding stringclasses 9
values | md5 stringlengths 32 32 | text stringlengths 23 843k |
|---|---|---|---|---|---|---|---|---|
github | lcnbeapp/beapp-master | ft_platform_supports.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | ft_plot_sens.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | ft_plot_montage.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | ft_select_point.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | ft_plot_slice.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | ft_select_range.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | ft_plot_axes.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | ft_select_channel.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | ft_datatype_sens.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | ptriside.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | ft_convert_units.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | ft_apply_montage.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | select3dtool.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | ft_platform_supports.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | ft_warning.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | mesh2edge.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | intersect_plane.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | inside_contour.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | enginecellfun.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | ft_platform_supports.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | ft_warning.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | ft_specest_mtmconvol.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | ft_specest_mtmfft.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | ft_warning.m | .m | beapp-master/Packages/eeglab14_1_2b/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 | lcnbeapp/beapp-master | ft_nonlinearassociation.m | .m | beapp-master/Packages/eeglab14_1_2b/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... |
github | lcnbeapp/beapp-master | ft_spike_psth.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/contrib/spike/ft_spike_psth.m | 12,842 | utf_8 | e308e4099a5a08933fde13a8aa72fffd | function [psth] = ft_spike_psth(cfg,spike)
% FT_SPIKE_PSTH computes the peristimulus histogram of spiketrains.
%
% Use as
% [psth] = ft_spike_psth(cfg, spike)
%
% The input SPIKE should be organised as a) the spike datatype, obtained
% from FT_SPIKE_MAKETRIALS b) the raw datatype, containing binary spike
% trains, o... |
github | lcnbeapp/beapp-master | ft_spikesimulation.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/contrib/spike/ft_spikesimulation.m | 4,725 | utf_8 | d2f166296318bfe9177298cc049edc35 | function data = ft_spikesimulation(cfg)
% FT_SPIKESIMULATION simulates a spiketrain with a structures timing of the
% neuronal firing.
%
% Use as
% data = ft_spikesimulation(cfg)
% and please look in the code for the cfg details.
%
% See also FT_DIPOLESIMULATION, FT_FREQSIMULATION
% Copyright (C) 2007, Robert Ooste... |
github | lcnbeapp/beapp-master | ft_spikedensity.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/contrib/spike/ft_spikedensity.m | 16,902 | utf_8 | ec80282516f911e5c7b17ae91dbafcaf | function [sdf, sdfdata] = ft_spikedensity(cfg,data)
% FT_SPIKEDENSITY computes the spike density function of the spike trains by
% convolving the data with a window.
%
% Use as
% [sdf] = ft_spike_density(cfg, data)
% [sdf, sdfdata] = ft_spike_density(cfg, data)
%
% If you specify one output argument, onl... |
github | lcnbeapp/beapp-master | ft_spike_rate.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/contrib/spike/ft_spike_rate.m | 9,138 | utf_8 | cd54c3262f0a19d4bb98e00fd04202b0 | function [rate] = ft_spike_rate(cfg,spike)
% FT_SPIKE_RATE computes the firing rate of spiketrains and their variance
%
% Use as
% [rate] = ft_spike_rate(cfg, spike)
%
% The input SPIKE should be organised as the spike or the (binary) raw datatype, obtained from
% FT_SPIKE_MAKETRIALS or FT_APPENDSPIKE (in that case,... |
github | lcnbeapp/beapp-master | ft_spike_plot_psth.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/contrib/spike/ft_spike_plot_psth.m | 6,983 | utf_8 | dcbec74860c44d235aad797cfe733489 | function [cfg] = ft_spike_plot_psth(cfg, psth)
% FT_SPIKE_PLOT_PSTH makes a bar plot of PSTH structure with error bars.
%
% Use as
% ft_spike_plot_psth(cfg, psth)
%
% Inputs:
% PSTH typically is a structure from FT_SPIKE_PSTH.
%
% Configurations:
% cfg.latency = [begin end] in seconds, 'maxperiod' (defa... |
github | lcnbeapp/beapp-master | ft_spiketriggeredspectrum_stat.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/contrib/spike/ft_spiketriggeredspectrum_stat.m | 20,734 | utf_8 | e8056c172557b5150d15a058d443c647 | function [freq] = ft_spiketriggeredspectrum_stat(cfg,spike)
% FT_SPIKETRIGGEREDSPECTRUM_STAT computes phase-locking statistics for spike-LFP
% phases. These contain the PPC statistics according to Vinck et al. 2010 (Neuroimage)
% and Vinck et al. 2011 (Journal of Computational Neuroscience).
%
% Use as:
% [stat] = f... |
github | lcnbeapp/beapp-master | ft_spike_select.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/contrib/spike/ft_spike_select.m | 7,381 | utf_8 | 17594cc9b902b58cd372eac21bf3272f | function [spike] = ft_spike_select(cfg,spike)
% FT_SPIKE_SELECT selects subsets of spikes, channels and trials from a
% spike structure
%
% Use as
% [spike] = ft_spike_select(cfg, spike)
%
% The input SPIKE should be organised as the spike datatype (see
% FT_DATATYPE_SPIKE)
%
% Configurations:
% cfg.spikechannel ... |
github | lcnbeapp/beapp-master | ft_spiketriggeredspectrum_fft.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/contrib/spike/ft_spiketriggeredspectrum_fft.m | 13,060 | utf_8 | 9ddd1c3908a218f53afc3cd852cffd4b | function [sts] = ft_spiketriggeredspectrum_fft(cfg, data, spike)
% FT_SPIKETRIGGEREDSPECTRUM_FFT computes the Fourier spectrum (amplitude and phase)
% of the LFP around the % spikes. A phase of zero corresponds to the spike being on
% the peak of the LFP oscillation. A phase of 180 degree corresponds to the spike bei... |
github | lcnbeapp/beapp-master | ft_spike_plot_raster.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/contrib/spike/ft_spike_plot_raster.m | 19,802 | utf_8 | 2861220e5c63dfa6d9a32157c62c8593 | function [cfg] = ft_spike_plot_raster(cfg, spike, timelock)
% FT_SPIKE_PLOT_RASTER makes a raster plot of spike-trains and allows for a
% spike-density or a PSTH plot on top.
%
% Use as
% ft_spike_plot_raster(cfg, spike)
% or
% ft_spike_plot_raster(cfg, spike, timelock)
%
% The input SPIKE data structure should ... |
github | lcnbeapp/beapp-master | ft_spiketriggeredspectrum_convol.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/contrib/spike/ft_spiketriggeredspectrum_convol.m | 22,946 | utf_8 | d98d6fda0d5ecfa7112481f075927c44 | function [sts] = ft_spiketriggeredspectrum_convol(cfg, data, spike)
% FT_SPIKETRIGGEREDSPECTRUM_CONVOL computes the Fourier spectrum (amplitude and
% phase) of the LFP around the spikes using convolution of the complete LFP traces. A
% phase of zero corresponds to the spike being on the peak of the LFP oscillation. A
... |
github | lcnbeapp/beapp-master | ft_spikesorting.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/contrib/spike/ft_spikesorting.m | 6,746 | utf_8 | 162576b720405723faae8c158c5b3b19 | function [spike] = ft_spikesorting(cfg, spike)
% FT_SPIKESORTING performs clustering of spike-waveforms and returns the
% unit number to which each spike belongs.
%
% Use as
% [spike] = ft_spikesorting(cfg, spike)
%
% The configuration can contain
% cfg.channel cell-array with channel selection (default = ... |
github | lcnbeapp/beapp-master | ft_spike_xcorr.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/contrib/spike/ft_spike_xcorr.m | 17,643 | utf_8 | 1640c25cf61ea0bbfab739c9bf37ef6b | function [stat] = ft_spike_xcorr(cfg,spike)
% FT_SPIKE_XCORR computes the cross-correlation histogram and shift predictor.
%
% Use as
% [stat] = ft_spike_xcorr(cfg,data)
%
% The input SPIKE should be organised as the spike or the raw datatype, obtained from
% FT_SPIKE_MAKETRIALS or FT_PREPROCESSING (in that case, co... |
github | lcnbeapp/beapp-master | ft_spike_plot_isi.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/contrib/spike/ft_spike_plot_isi.m | 4,783 | utf_8 | ae1249245a55f1f3f2a73625f0bfaf8a | function [cfg] = ft_spike_plot_isi(cfg, isih)
% FT_SPIKE_PLOT_ISI makes an inter-spike-interval bar plot.
%
% Use as
% ft_spike_plot_isi(cfg, isih)
%
% Inputs:
% ISIH is the output from FT_SPIKE_ISIHIST
%
% Configurations:
% cfg.spikechannel = string or index or logical array to to select 1 spike channel.
% ... |
github | lcnbeapp/beapp-master | ft_spike_plot_jpsth.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/contrib/spike/ft_spike_plot_jpsth.m | 13,192 | utf_8 | d52c82a28b5a7f91c7301fd2bd7baaa8 | function [cfg] = ft_spike_plot_jpsth(cfg, jpsth)
% FT_SPIKE_PLOT_JPSTH makes a plot from JPSTH structure.
%
% Use as
% ft_spike_plot_jpsth(cfg, jpsth)
%
% Inputs:
% JPSTH must be the output structure from FT_SPIKE_JPSTH and contain the
% field JPSTH.avg. If cfg.psth = 'yes', the field JPSTH.psth must be
% pres... |
github | lcnbeapp/beapp-master | ft_spike_plot_isireturn.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/contrib/spike/ft_spike_plot_isireturn.m | 12,153 | utf_8 | 8622e6b75dbc92336c1b2713baa56e48 | function [cfg] = ft_spike_plot_isireturn(cfg, isih)
% FT_SPIKE_PLOT_ISIRETURN makes a return plot from ISIH structure. A return
% plot (also called Poincare plot) plots the isi to the next spike versus the isi
% from the next spike to the second next spike, and thus gives insight in
% the second order isi statistics. ... |
github | lcnbeapp/beapp-master | test_ft_spiketriggeredspectrum_stat.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/contrib/spike/test/test_ft_spiketriggeredspectrum_stat.m | 2,343 | utf_8 | c0b669f66bc952bb2a588904bf5e9faf | function test_ft_spiketriggeredspectrum_stat()
% MEM 1gb
% WALLTIME 00:10:00
% TEST test_ft_spiketriggeredspectrum_stat
% TEST ft_spiketriggeredspectrum_stat
nSpikes = 10000;
randPhases = [];
kappa = 1;
nChans = 3;
for iChan = 1:nChans
for iFreq = 1:6
randPhases(:,iChan,iFreq) = randnwrap(nSpikes+1,kappa/iChan... |
github | lcnbeapp/beapp-master | nmt_transform_coord.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/contrib/nutmegtrip/nmt_transform_coord.m | 1,383 | utf_8 | 45ec93e41ec1e8943ab8f2c2ea73dd0e |
function [xyz_o,y_o,z_o] = nmt_transform_coord(varargin)
% [XYZ_O]=NUT_COORDTFM(A,XYZ_I)
% [X_O,Y_O,Z_O]=NUT_COORDTFM(A,X_I,Y_I,Z_I)
% Performs coordinate transformation using transform matrix A.
% Supply either xyz_i as an N x 3 matrix containing cartesian coordinates
% or x_i, y_i, and z_i in separate N x 1 vectors... |
github | lcnbeapp/beapp-master | getdimord.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/contrib/nutmegtrip/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 | lcnbeapp/beapp-master | freezeColors.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/contrib/nutmegtrip/private/freezeColors.m | 9,815 | utf_8 | 2068d7a4f7a74d251e2519c4c5c1c171 | function freezeColors(varargin)
% freezeColors Lock colors of plot, enabling multiple colormaps per figure. (v2.3)
%
% Problem: There is only one colormap per figure. This function provides
% an easy solution when plots using different colomaps are desired
% in the same figure.
%
% freezeColors freeze... |
github | lcnbeapp/beapp-master | nmt_update_panel.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/contrib/nutmegtrip/private/nmt_update_panel.m | 7,882 | utf_8 | 6d1fc15425b5436887f56bbc1fd41370 | function nmt_update_panel(axsel)
global st
%% update time series, if applicable
if(isfield(st.nmt,'time')) %& ~isfield(st.nmt,'freq'))
set(st.nmt.gui.timeguih,'Visible','On'); % ensure plot is visible
switch(st.nmt.cfg.plottype)
case 'tf'
clim = max(abs(st.nmt.fun{axsel}(:))) * [-1 1];
... |
github | lcnbeapp/beapp-master | getdimsiz.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/contrib/nutmegtrip/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 | lcnbeapp/beapp-master | getdimord.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/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 | lcnbeapp/beapp-master | pinvNx2.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/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 | lcnbeapp/beapp-master | avw_hdr_make.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/avw_hdr_make.m | 4,168 | utf_8 | c530411ae12b3b3ce7cc6adfa1512f8c | 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 | lcnbeapp/beapp-master | prepare_mesh_headshape.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/prepare_mesh_headshape.m | 8,455 | utf_8 | 26d86124f7d9a9099dfc853ed4f9d203 | function mesh = 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.fieldtriptoolbox.org
% for the documentation and details.
%
% FieldTrip is free software: you ... |
github | lcnbeapp/beapp-master | normals.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/normals.m | 2,528 | utf_8 | 96701c7ebda7e6efca8095b3adb6081c | 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.fiel... |
github | lcnbeapp/beapp-master | rejectvisual_trial.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/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... |
github | lcnbeapp/beapp-master | wizard_base.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/wizard_base.m | 11,622 | utf_8 | cd0fcbdbd539128983f819e31e3d920b | function h = wizard_gui(filename)
% This is the low level wizard function. It evaluates the MATLAB content
% in the workspace of the calling function. To prevent overwriting
% variables in the BASE workspace, this function should be called from a
% wrapper function. The wrapper function whoudl pause execution untill t... |
github | lcnbeapp/beapp-master | mesh_spectrum.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/mesh_spectrum.m | 1,373 | utf_8 | e29d504eadc1676f855eb0c8ba8b3267 | % Mesh spectrum
function [L,H,d] = ct_mesh_spectrum(S,n,varargin)
%[L,H,d] = ct_mesh_spectrum(S,n,mode)
% Compute the mesh laplace matrix and its spectrum
% input,
% S: mesh file, it has to have a pnt and a tri field
% n: number of mesh harmonic functions
% mode: 'full' for the full graph, 'half' if you want to do th... |
github | lcnbeapp/beapp-master | spikesort.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/spikesort.m | 5,832 | utf_8 | fed348ceea614e5eeddbd547090e7922 | function [numA, numB, indA, indB] = spikesort(numA, numB, varargin)
% SPIKESORT uses a variation on the cocktail sort algorithm in combination
% with a city block distance to achieve N-D trial pairing between spike
% counts. The sorting is not guaranteed to result in the optimal pairing. A
% linear pre-sorting algorit... |
github | lcnbeapp/beapp-master | shiftpredict.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/shiftpredict.m | 8,678 | utf_8 | df8a7daa983de83d580b19297e9ab23a | function [prb, cohobs, mcohrnd] = shiftpredict(cfg, dat, datindx, refindx, trltapcnt)
% SHIFTPREDICT implements a shift-predictor for testing significance
% of coherence within a single condition. This function is a subfunction
% for SOURCESTATISTICS_SHIFTPREDICT and FREQSTATISTICS_SHIFTPREDICT.
%
% cfg.method
% cfg.... |
github | lcnbeapp/beapp-master | volumeedit.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/volumeedit.m | 15,832 | utf_8 | 66df68c10de81ef176ced3ba888a8e9b | function [dataout] = volumeedit(data, varargin)
% VOLUMEEDIT allows for editing of a (booleanized) volume, in order to
% remove unwanted voxels. Interaction proceeds with the keyboard and the
% mouse.
% Copyright (C) 2013, Jan-Mathijs Schoffelen
%
% This file is part of FieldTrip, see http://www.fieldtriptoolbox.org... |
github | lcnbeapp/beapp-master | statistics_wrapper.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/statistics_wrapper.m | 28,152 | utf_8 | 0434a84d6c5a056986bcd7655d59597f | function [stat, cfg] = statistics_wrapper(cfg, varargin)
% STATISTICS_WRAPPER performs the selection of the biological data for
% timelock, frequency or source data and sets up the design vector or
% matrix.
%
% The specific configuration options for selecting timelock, frequency
% of source data are described in FT_T... |
github | lcnbeapp/beapp-master | csp.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/csp.m | 1,702 | utf_8 | 3eb6c73192bc8163344c9b5e70a04877 | function [W] = csp(C1, C2, m)
% CSP calculates the common spatial pattern (CSP) projection.
%
% Use as:
% [W] = csp(C1, C2, m)
%
% This function implements the intents of the CSP algorithm described in [1].
% Specifically, CSP finds m spatial projections that maximize the variance (or
% band power) in one condition (... |
github | lcnbeapp/beapp-master | read_besa_src.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/read_besa_src.m | 2,659 | utf_8 | 43681bd06aada6e69bddc42dbb47c254 | function [src] = read_besa_src(filename)
% READ_BESA_SRC reads a beamformer source reconstruction from a BESA file
%
% Use as
% [src] = read_besa_src(filename)
%
% The output structure contains a minimal representation of the contents
% of the file.
% Copyright (C) 2005, Robert Oostenveld
%
% This file is part of F... |
github | lcnbeapp/beapp-master | splint.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/splint.m | 6,340 | utf_8 | 18b814d3a2a955804ded0f7bd7ea6eec | function [V2, L2, L1] = splint(elc1, V1, elc2, order, degree, lambda)
% SPLINT computes the spherical spline interpolation and the surface laplacian
% of an EEG potential distribution
%
% Use as
% [V2, L2, L1] = splint(elc1, V1, elc2)
% where
% elc1 electrode positions where potential is known
% elc2 elec... |
github | lcnbeapp/beapp-master | find_nearest.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/find_nearest.m | 5,997 | utf_8 | d222cf9a4bf0492d012b52b1fc171646 | function [nearest, distance] = find_nearest(pnt1, pnt2, npart, gridflag)
% FIND_NEAREST finds the nearest vertex in a cloud of points and
% does this efficiently for many target vertices at once (by means
% of partitioning).
%
% Use as
% [nearest, distance] = find_nearest(pnt1, pnt2, npart)
% Copyright (C) 2007, Ro... |
github | lcnbeapp/beapp-master | prepare_mesh_segmentation.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/prepare_mesh_segmentation.m | 7,346 | utf_8 | d189606268a3d46e958dacce53df76ee | function bnd = prepare_mesh_segmentation(cfg, mri)
% PREPARE_MESH_SEGMENTATION
%
% See also PREPARE_MESH_MANUAL, PREPARE_MESH_HEADSHAPE, PREPARE_MESH_HEXAHEDRAL
% Copyrights (C) 2009, Robert Oostenveld
%
% This file is part of FieldTrip, see http://www.fieldtriptoolbox.org
% for the documentation and details.
%
% ... |
github | lcnbeapp/beapp-master | read_besa_avr.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/read_besa_avr.m | 3,870 | utf_8 | f19ef935bf322fb2ccbcced4717efd61 | function [avr] = read_besa_avr(filename)
% READ_BESA_AVR reads average EEG data in BESA format
%
% Use as
% [avr] = read_besa_avr(filename)
%
% This will return a structure with the header information in
% avr.npnt
% avr.tsb
% avr.di
% avr.sb
% avr.sc
% avr.Nchan (optional)
% avr.label (optional)
%... |
github | lcnbeapp/beapp-master | topoplot_common.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/topoplot_common.m | 39,786 | utf_8 | e4132354f59b473a71ba3b564ab807d9 | function cfg = topoplot_common(cfg, varargin)
% TOPOPLOT_COMMON is shared by FT_TOPOPLOTTFR, FT_TOPOPLOTER and FT_TOPOPLOTIC, which
% serve as placeholder for the documentation and for the pre/postamble.
% Copyright (C) 2005-2011, F.C. Donders Centre
%
% This file is part of FieldTrip, see http://www.fieldtriptoolbox... |
github | lcnbeapp/beapp-master | avw_img_write.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/avw_img_write.m | 29,911 | utf_8 | 72118d833f0cc7cdd6ebd57754009a2f | function avw_img_write(avw, fileprefix, IMGorient, machine, verbose)
% avw_img_write - write Analyze image files (*.img)
%
% avw_img_write(avw,fileprefix,[IMGorient],[machine],[verbose])
%
% avw.img - a 3D matrix of image data (double precision).
% avw.hdr - a struct with image data parameters. If
% ... |
github | lcnbeapp/beapp-master | triangle2connectivity.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/triangle2connectivity.m | 2,477 | utf_8 | 8a536381c1a41e258adfd603a4ccba83 | function [connmat] = triangle2connectivity(tri, pos)
% TRIANGLE2CONNECTIVITY computes a connectivity-matrix from a triangulation.
%
% Use as
% [connmat] = triangle2connectivity(tri)
% or
% [connmat] = triangle2connectivity(tri, pos)
%
% The input tri is an Mx3 matrix describing a triangulated surface,
% containing i... |
github | lcnbeapp/beapp-master | ft_platform_supports.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/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 | lcnbeapp/beapp-master | mesh_spherify.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/mesh_spherify.m | 4,920 | utf_8 | 414c768e5ef2fdc3e19da24f00f72626 | function [pnt, tri] = mesh_spherify(pnt, tri, varargin)
% Takes a cortical mesh and scales it so that it fits into a
% unit sphere.
%
% This function determines the points of the original mesh that support a
% convex hull and determines the radius of those points. Subsequently the
% radius of the support points is int... |
github | lcnbeapp/beapp-master | select_channel_list.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/select_channel_list.m | 5,924 | utf_8 | 94982b0a4829981930c1c446e459ca7c | function [select] = select_channel_list(label, select, titlestr)
% SELECT_CHANNEL_LIST presents a dialog for selecting multiple elements
% from a cell array with strings, such as the labels of EEG channels.
% The dialog presents two columns with an add and remove mechanism.
%
% select = select_channel_list(label, ini... |
github | lcnbeapp/beapp-master | artifact_viewer.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/artifact_viewer.m | 7,053 | utf_8 | 102f40eaa7a02d86d35db0d6412e07ab | function artifact_viewer(cfg, artcfg, zval, artval, zindx, inputdata)
% ARTIFACT_VIEWER is a subfunction that reads a segment of data
% (one channel only) and displays it together with the cumulated
% z-value
% Copyright (C) 2004-2006, Jan-Mathijs Schoffelen & Robert Oostenveld
%
% This file is part of FieldTrip, see... |
github | lcnbeapp/beapp-master | estimate_fwhm2.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/estimate_fwhm2.m | 3,130 | utf_8 | 195e03d1b210e939380a0b31ddd6efb0 | function [source] = estimate_fwhm2(source, maxdist)
% ESTIMATE_FWHM2(SOURCE, MAXDIST)
%
% This function computes the Gaussian fwhm of the spatial filters, according to
% least-squares Gaussian fit including data points up until MAXDIST from the
% locations of interest.
%
% This function can only deal with scalar filt... |
github | lcnbeapp/beapp-master | rejectvisual_summary.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/rejectvisual_summary.m | 22,693 | utf_8 | 379ccee2d011c4f5e854a071b19084bb | function [chansel, trlsel, cfg] = rejectvisual_summary(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;
% ... |
github | lcnbeapp/beapp-master | rejectvisual_channel.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/rejectvisual_channel.m | 9,660 | utf_8 | 64e84accf24c4c0d5e6d8d5dd55c5d92 | function [chansel, trlsel, cfg] = rejectvisual_channel(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;
% d... |
github | lcnbeapp/beapp-master | triangulate_seg.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/triangulate_seg.m | 4,688 | utf_8 | bdeb11f09693c8be1b6139bf1dec878f | function [pnt, tri] = triangulate_seg(seg, npnt, origin)
% TRIANGULATE_SEG constructs a triangulation of the outer surface of a
% segmented volume. It starts at the center of the volume and projects the
% vertices of an evenly triangulated sphere onto the outer surface. The
% resulting surface is star-shaped from the ... |
github | lcnbeapp/beapp-master | smooth_source.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/smooth_source.m | 4,790 | utf_8 | 311f6c3b9247cab7f1c9a0dc3b5ac994 | function source = smooth_source(source, varargin)
%[SOURCE] = SMOOTH(SOURCE, VARARGIN)
%
% computes location specific 3D gaussian kernels based on a FWHM estimate
% source should contain the fields
% fwhm, specifying for each voxel the FWHM of the smoothing kernel in the xyz-direction
% pos, allowing for the ... |
github | lcnbeapp/beapp-master | mesh2edge.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/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 | lcnbeapp/beapp-master | browse_simpleFFT.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/browse_simpleFFT.m | 4,727 | utf_8 | 2800cf4a6b4a130e6fd058b508f2b513 | function browse_simpleFFT(cfg, data)
% BROWSE_SIMPLEFFT is a helper function for FT_DATABROWSER that shows a
% simple FFT of the data.
%
% Included are a button to switch between log and non-log space, and a
% selection button to deselect channels, for the purpose of zooming in on
% bad channels.
%
% See also BROWSE_M... |
github | lcnbeapp/beapp-master | prepare_mesh_manual.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/prepare_mesh_manual.m | 32,788 | utf_8 | 7e4f36eceea55290e67695f34f02b83c | function bnd = prepare_mesh_manual(cfg, mri)
% PREPARE_MESH_MANUAL is called by PREPARE_MESH and opens a GUI to manually
% select points/polygons in an mri dataset.
%
% It allows:
% Visualization of 3d data in 3 different projections
% Adjustment of brightness for every slice
% Storage of the data points in an e... |
github | lcnbeapp/beapp-master | moviefunction.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/moviefunction.m | 45,773 | utf_8 | 556b05a7a84b6579fadc1c643c5f24f9 | function moviefunction(cfg, varargin)
% we need cfg.plotfun to plot the data
% data needs to be 3D, N x time x freq (last can be singleton)
% N needs to correspond to number of vertices (channels, gridpoints, etc)
% new UI artwork
%
% [main window] -------------------------------------\
% | [uipanel: plot] ... |
github | lcnbeapp/beapp-master | bsscca.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/bsscca.m | 7,428 | utf_8 | d64d6dd63efc92dff2aabe9e03c7dbb1 | function [w,rho] = bsscca(X, delay)
% BSSCCA computes the unmixing matrix based on the canonical correlation between a signal and its lagged-one copy. It implements the algorithm described in [1]
%
% DeClercq et al 2006, IEEE Biomed Eng 2583.
if nargin<2,
delay = 1;
end
% hmmmm we need to observe the epochs' bound... |
github | lcnbeapp/beapp-master | inside_contour.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/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 | lcnbeapp/beapp-master | smudge.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/smudge.m | 1,949 | utf_8 | a793adc32ad1bfa0f193bd20c3ca7764 | function [datout, S] = smudge(datin, tri, niter, threshold)
% SMUDGE(DATIN, TRI) computes a smudged version of the input data datain,
% given a triangulation tri. The algorithm is according to what is in
% MNE-Suite, documented in chapter 8.3
if nargin<3 || isempty(niter),
niter = 1;
end
if nargin<4
threshold = ... |
github | lcnbeapp/beapp-master | getdimsiz.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/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 | lcnbeapp/beapp-master | convert_event.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/convert_event.m | 7,782 | utf_8 | f31a7a3358af889e95dc1c8178c68bbf | function [obj] = convert_event(obj, target, varargin)
% CONVERT_EVENT converts between the different representations of events,
% which can be
% 1) event structure, see FT_READ_EVENT
% 2) matrix representation as in trl (Nx3), see FT_DEFINETRIAL
% 3) matrix representation as in artifact (Nx2), see FT_ARTIFACT_x... |
github | lcnbeapp/beapp-master | project_elec.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/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 | lcnbeapp/beapp-master | fdr.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/fdr.m | 2,138 | utf_8 | fd32f61564bb6c0088f02c6a3fcec3a2 | function [h] = fdr(p, q)
% FDR false discovery rate
%
% Use as
% h = fdr(p, q)
%
% This implements
% Genovese CR, Lazar NA, Nichols T.
% Thresholding of statistical maps in functional neuroimaging using the false discovery rate.
% Neuroimage. 2002 Apr;15(4):870-8.
%
% There are two types of FDR correction (Ben... |
github | lcnbeapp/beapp-master | prepare_mesh_hexahedral.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/prepare_mesh_hexahedral.m | 17,670 | utf_8 | 6191dbd9342d65e59d705e95b3e70aeb | function mesh = prepare_mesh_hexahedral(cfg, mri)
% PREPARE_MESH_HEXAHEDRAL
%
% Configuration options for generating a regular 3-D grid
% cfg.tissue = cell with the names of the compartments that should be meshed
% cfg.resolution = desired resolution of the mesh (default = 1)
% cfg.shift
% cfg.background
%... |
github | lcnbeapp/beapp-master | read_labview_dtlg.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/read_labview_dtlg.m | 5,089 | utf_8 | dc63845970397d9529684d354d5ce39b | function [dat] = read_labview_dtlg(filename, datatype)
% READ_LABVIEW_DTLG
%
% Use as
% dat = read_labview_dtlg(filename, datatype)
% where datatype can be 'int32' or 'int16'
%
% The output of this function is a structure.
% Copyright (C) 2007, Robert Oostenveld
%
% This file is part of FieldTrip, see http://www.fi... |
github | lcnbeapp/beapp-master | sphericalSplineInterpolate.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/private/sphericalSplineInterpolate.m | 5,226 | utf_8 | 27ce6fd83adee8c3957c477f73dad771 | function [W,Gss,Gds,Hds]=sphericalSplineInterpolate(src,dest,lambda,order,type,tol)
%interpolate matrix for spherical interpolation
%
% W = sphericalSplineInterpolate(src,dest,lambda,order,type,tol)
%
% Inputs:
% src - [3 x N] old electrode positions
% dest - [3 x M] new electrode positions
% lambda - [float] r... |
github | lcnbeapp/beapp-master | ft_write_cifti.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/ft_write_cifti.m | 31,321 | utf_8 | b43578a0120b4ea370bcde78c9bb3034 | function ft_write_cifti(filename, source, varargin)
% FT_WRITE_CIFTI writes functional data or functional connectivity to a cifti-2
% file. The geometrical description of the brainordinates can consist of
% triangulated surfaces or voxels in a regular 3-D volumetric grid. The functional
% data can consist of a dense o... |
github | lcnbeapp/beapp-master | ft_chantype.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/ft_chantype.m | 28,384 | utf_8 | 522cd6f4bd6d33431a8b221f56de3b4c | function chantype = ft_chantype(input, desired)
% FT_CHANTYPE determines for each individual channel what chantype of data it
% represents, e.g. a planar gradiometer, axial gradiometer, magnetometer,
% trigger channel, etc. If you want to know what the acquisition system is
% (e.g. ctf151 or neuromag306), you should n... |
github | lcnbeapp/beapp-master | ft_read_header.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/ft_read_header.m | 94,063 | utf_8 | b72ee43e5846a045b221a03afde784b7 | function [hdr] = ft_read_header(filename, varargin)
% FT_READ_HEADER reads header information from a variety of EEG, MEG and LFP
% files and represents the header information in a common data-independent
% format. The supported formats are listed below.
%
% Use as
% hdr = ft_read_header(filename, ...)
%
% Additional... |
github | lcnbeapp/beapp-master | ft_read_mri.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/ft_read_mri.m | 16,412 | utf_8 | 5f31e0b2de7b0f1c54df82c39a9d8b73 | function [mri] = ft_read_mri(filename, varargin)
% FT_READ_MRI reads anatomical and functional MRI data from different
% file formats. The output data is structured in such a way that it is
% comparable to a FieldTrip source reconstruction.
%
% Use as
% [mri] = ft_read_mri(filename)
%
% Additional options should be ... |
github | lcnbeapp/beapp-master | ft_filetype.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/ft_filetype.m | 66,474 | utf_8 | 5b944ec5e2bf4cdb91d29ed2c5644618 | function [type] = ft_filetype(filename, desired, varargin)
% FT_FILETYPE determines the filetype of many EEG/MEG/MRI data files by
% looking at the name, extension and optionally (part of) its contents.
% It tries to determine the global type of file (which usually
% corresponds to the manufacturer, the recording syst... |
github | lcnbeapp/beapp-master | getdimord.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/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 | lcnbeapp/beapp-master | read_mff_bin.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/read_mff_bin.m | 4,095 | utf_8 | 14e1df31f92faf2b6f02cfe4a32060c9 | function [output] = read_mff_bin(filename, begblock, endblock, chanindx)
% READ_MFF_BIN
%
% Use as
% [hdr] = read_mff_bin(filename)
% or
% [dat] = read_mff_bin(filename, begblock, endblock);
fid = fopen(filename,'r');
if fid == -1
error('wrong filename') % could not find signal(n)
end
needhdr = (nargin==1);
n... |
github | lcnbeapp/beapp-master | ft_datatype_sens.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/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 | lcnbeapp/beapp-master | avw_img_read.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/avw_img_read.m | 29,185 | utf_8 | 0292be5a490e4b339a1682248d56c5ee | function [ avw, machine ] = avw_img_read(fileprefix,IMGorient,machine,verbose)
% avw_img_read - read Analyze format data image (*.img)
%
% [ avw, machine ] = avw_img_read(fileprefix,[orient],[machine],[verbose])
%
% fileprefix - a string, the filename without the .img extension
%
% orient - read a specified orienta... |
github | lcnbeapp/beapp-master | read_yokogawa_event.m | .m | beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/read_yokogawa_event.m | 7,046 | utf_8 | df3f4e01815283a7efc0b36ed8e51c29 | function [event] = read_yokogawa_event(filename, varargin)
% READ_YOKOGAWA_EVENT reads event information from continuous,
% epoched or averaged MEG data that has been generated by the Yokogawa
% MEG system and software and allows those events to be used in
% combination with FieldTrip.
%
% Use as
% [event] = read_yo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.