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_spike_psth.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | ft_spikesimulation.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | ft_spikedensity.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | ft_spike_rate.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | ft_spike_plot_psth.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | ft_spiketriggeredspectrum_stat.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | ft_spike_select.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | ft_spiketriggeredspectrum_fft.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | ft_spike_plot_raster.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | ft_spiketriggeredspectrum_convol.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | ft_spikesorting.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | ft_spike_xcorr.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | ft_spike_plot_isi.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | ft_spike_plot_jpsth.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | ft_spike_plot_isireturn.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | test_ft_spiketriggeredspectrum_stat.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | nmt_transform_coord.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | getdimord.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | freezeColors.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | nmt_update_panel.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | getdimsiz.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | getdimord.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | pinvNx2.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | avw_hdr_make.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | prepare_mesh_headshape.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | normals.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | rejectvisual_trial.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | wizard_base.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | mesh_spectrum.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | spikesort.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | shiftpredict.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | volumeedit.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | statistics_wrapper.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | csp.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | read_besa_src.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | splint.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | find_nearest.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | prepare_mesh_segmentation.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | read_besa_avr.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | topoplot_common.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | avw_img_write.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | triangle2connectivity.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | ft_platform_supports.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | mesh_spherify.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | select_channel_list.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | artifact_viewer.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | estimate_fwhm2.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | rejectvisual_summary.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | rejectvisual_channel.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | triangulate_seg.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | smooth_source.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | mesh2edge.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | browse_simpleFFT.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | prepare_mesh_manual.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | moviefunction.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | bsscca.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | inside_contour.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | smudge.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | getdimsiz.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | convert_event.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | project_elec.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | fdr.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | prepare_mesh_hexahedral.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | read_labview_dtlg.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | sphericalSplineInterpolate.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | ft_write_cifti.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | ft_chantype.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | ft_read_header.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | ft_read_mri.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | ft_filetype.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | getdimord.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | read_mff_bin.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | ft_datatype_sens.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | avw_img_read.m | .m | happe-master/Packages/eeglab14_0_0b/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 | lcnhappe/happe-master | read_yokogawa_event.m | .m | happe-master/Packages/eeglab14_0_0b/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... |
github | lcnhappe/happe-master | read_4d_hdr.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_4d_hdr.m | 26,521 | utf_8 | 5f0337cc99b66ec955345f869473c4f8 | function [header] = read_4d_hdr(datafile, configfile)
% hdr=READ_4D_HDR(datafile, configfile)
% Collects the required Fieldtrip header data from the data file 'filename'
% and the associated 'config' file for that data.
%
% Adapted from the MSI>>Matlab code written by Eugene Kronberg
% Copyright (C) 2008-2009, Centre... |
github | lcnhappe/happe-master | decode_nifti1.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/decode_nifti1.m | 3,043 | utf_8 | e74c0ee902019b3883dbaf1cb0ebda26 | function H = decode_nifti1(blob)
% DECODE_NIFTI1 is a helper function for real-time processing of MRI data
%
% Use as
% H = decode_nifti1(blob)
%
% Decodes a NIFTI-1 header given as raw 348 bytes (uint8) into a Matlab structure
% that matches the C struct defined in nifti1.h, with the only difference that the
% vari... |
github | lcnhappe/happe-master | read_edf.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_edf.m | 18,623 | utf_8 | 005c9a5a01178dd1021b25d4b6e9b63a | function [dat] = read_edf(filename, hdr, begsample, endsample, chanindx)
% READ_EDF reads specified samples from an EDF continous datafile
% It neglects all trial boundaries as if the data was acquired in
% non-continous mode.
% Note that since FieldTrip only accommodates a single sampling rate in a
% given dataset wh... |
github | lcnhappe/happe-master | yokogawa2grad.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/yokogawa2grad.m | 7,146 | utf_8 | bf4658b4bc8fd39bb57c718ba6ba3be0 | function grad = yokogawa2grad(hdr)
% YOKOGAWA2GRAD converts the position and weights of all coils that
% compromise a gradiometer system into a structure that can be used
% by FieldTrip. This implementation uses the old "yokogawa" toolbox.
%
% See also CTF2GRAD, BTI2GRAD, FIF2GRAD, MNE2GRAD, ITAB2GRAD,
% FT_READ_SENS,... |
github | lcnhappe/happe-master | read_erplabheader.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_erplabheader.m | 2,048 | utf_8 | c72fab70eaf79706e1f1f452bc50692a | % read_erplabheader() - import ERPLAB dataset files
%
% Usage:
% >> header = read_erplabheader(filename);
%
% Inputs:
% filename - [string] file name
%
% Outputs:
% header - FILEIO toolbox type structure
%
% Modified from read_eeglabheader
%1234567890123456789012345678901234567890123456789012345678901234567890... |
github | lcnhappe/happe-master | write_plexon_nex.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/write_plexon_nex.m | 9,560 | utf_8 | be58ed0114e68d6dffe4f005762b5db9 | function write_plexon_nex(filename, nex)
% WRITE_PLEXON_NEX writes a Plexon *.nex file, which is a file
% containing action-potential (spike) timestamps and waveforms (spike
% channels), event timestamps (event channels), and continuous variable
% data (continuous A/D channels).
%
% Use as
% write_plexon_nex(filenam... |
github | lcnhappe/happe-master | ft_convert_units.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/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_datatype.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/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_apply_montage.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/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 | read_erplabdata.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_erplabdata.m | 2,109 | utf_8 | 0bf7476062c683168eb2d5ebeb92dbe3 | % read_erplabdata() - import ERPLAB dataset files
%
% Usage:
% >> dat = read_erplabdata(filename);
%
% Inputs:
% filename - [string] file name
%
% Optional inputs:
% 'begtrial' - [integer] first trial to read
% 'endtrial' - [integer] last trial to read
% 'chanindx' - [integer] list with channel indices to ... |
github | lcnhappe/happe-master | read_besa_besa.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_besa_besa.m | 98,170 | utf_8 | 4dbddf31b961d349d9ca2a758d6cae77 |
function [data] = read_besa_besa(filename, header, begsample, endsample, chanindx)
%% Reads BESA .besa format files
% See formatting document <a href="matlab:web(http://www.besa.de/downloads/file-formats/)">here</a>
%
%
% Use as
% [header] = read_besa_besa(filename);
% where
% filename name of the datafil... |
github | lcnhappe/happe-master | in_fopen_manscan.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/in_fopen_manscan.m | 11,806 | utf_8 | caf4a8d115834da29621c65451b195b2 | function sFile = in_fopen_manscan(DataFile)
% IN_FOPEN_MANSCAN: Open a MANSCAN file (continuous recordings)
%
% USAGE: sFile = in_fopen_manscan(DataFile)
% @=============================================================================
% This software is part of the Brainstorm software:
% http://neuroimage.usc.edu/bra... |
github | lcnhappe/happe-master | read_biosemi_bdf.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_biosemi_bdf.m | 10,808 | utf_8 | d5b96e460d000a097fcc84b66f4679fd | function dat = read_biosemi_bdf(filename, hdr, begsample, endsample, chanindx)
% READ_BIOSEMI_BDF reads specified samples from a BDF continous datafile
% It neglects all trial boundaries as if the data was acquired in
% non-continous mode.
%
% Use as
% [hdr] = read_biosemi_bdf(filename);
% where
% filename ... |
github | lcnhappe/happe-master | read_ctf_ascii.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_ctf_ascii.m | 3,157 | utf_8 | 32e93975d6d654771bf27ed64dc95ca0 | function [file] = read_ctf_ascii(filename)
% READ_CTF_ASCII reads general data from an CTF configuration file
%
% The file should be formatted like
% Group
% {
% item1 : value1a value1b value1c
% item2 : value2a value2b value2c
% item3 : value3a value3b value3c
% item4 : value4a value4b va... |
github | lcnhappe/happe-master | read_mpi_dap.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_mpi_dap.m | 7,026 | utf_8 | ca2c62870772cb3bfb71c4c7d8109a21 | function [dap] = read_mpi_dap(filename)
% READ_MPI_DAP read the analog channels from a DAP file
% and returns the values in microvolt (uV)
%
% Use as
% [dap] = read_mpi_dap(filename)
% Copyright (C) 2005-2007, Robert Oostenveld
%
% This file is part of FieldTrip, see http://www.fieldtriptoolbox.org
% for the docume... |
github | lcnhappe/happe-master | read_neuralynx_bin.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_neuralynx_bin.m | 6,640 | utf_8 | 1448e3703a6b780a4d8fddd68e151fec | function [dat] = read_neuralynx_bin(filename, begsample, endsample)
% READ_NEURALYNX_BIN
%
% Use as
% hdr = read_neuralynx_bin(filename)
% or
% dat = read_neuralynx_bin(filename, begsample, endsample)
%
% This is not a formal Neuralynx file format, but at the
% F.C. Donders Centre we use it in conjunction with Ne... |
github | lcnhappe/happe-master | inifile.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/inifile.m | 23,578 | utf_8 | f647125ffa71c22e44a119c27e73d460 | function readsett = inifile(fileName,operation,keys,style)
%readsett = INIFILE(fileName,operation,keys,style)
% Creates, reads, or writes data from/to ini (ascii) file.
%
% - fileName: ini file name
% - operation: can be one of the following:
% 'new' (rewrites an existing or creates... |
github | lcnhappe/happe-master | yokogawa2grad_new.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/yokogawa2grad_new.m | 9,059 | utf_8 | 9cbc5b3c41718d550ce5fc8fa204712f | function grad = yokogawa2grad_new(hdr)
% YOKOGAWA2GRAD_NEW converts the position and weights of all coils that
% compromise a gradiometer system into a structure that can be used
% by FieldTrip. This implementation uses the new "yokogawa_meg_reader"
% toolbox.
%
% See also FT_READ_HEADER, CTF2GRAD, BTI2GRAD, FIF2GRAD... |
github | lcnhappe/happe-master | read_besa_avr.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/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 | lcnhappe/happe-master | ft_datatype_source.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/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 | xml2struct.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/xml2struct.m | 8,612 | utf_8 | 3d883353ccb551f2dcd554835610a565 | function [ s ] = xml2struct( file )
%Convert xml file into a MATLAB structure
% [ s ] = xml2struct( file )
%
% A file containing:
% <XMLname attrib1="Some value">
% <Element>Some text</Element>
% <DifferentElement attrib2="2">Some more text</DifferentElement>
% <DifferentElement attrib3="2" attrib4="1">Even more ... |
github | lcnhappe/happe-master | in_fread_manscan.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/in_fread_manscan.m | 4,760 | utf_8 | 474793281d7e666aeb2bff303bd62b5b | function F = in_fread_manscan(sFile, sfid, iEpoch, SamplesBounds)
% IN_FREAD_MANSCAN: Read a block of recordings from a MANSCAN file
%
% USAGE: F = in_fread_manscan(sFile, sfid, iEpoch, SamplesBounds) : Read all channels
% F = in_fread_manscan(sFile, sfid) : Read all channels, all the... |
github | lcnhappe/happe-master | read_ply.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_ply.m | 5,940 | utf_8 | b94bb1121711ea40234fe404e5e49681 | function [vert, face] = read_ply(fn)
% READ_PLY reads triangles, tetraheders or hexaheders from a Stanford *.ply file
%
% Use as
% [vert, face, prop, face_prop] = read_ply(filename)
%
% Documentation is provided on
% http://paulbourke.net/dataformats/ply/
% http://en.wikipedia.org/wiki/PLY_(file_format)
%
% See ... |
github | lcnhappe/happe-master | read_eeglabdata.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/read_eeglabdata.m | 3,192 | utf_8 | 6350cca8d6035012007f36178fdbfde5 | % read_eeglabdata() - import EEGLAB dataset files
%
% Usage:
% >> dat = read_eeglabdata(filename);
%
% Inputs:
% filename - [string] file name
%
% Optional inputs:
% 'begtrial' - [integer] first trial to read
% 'endtrial' - [integer] last trial to read
% 'chanindx' - [integer] list with channel indices to ... |
github | lcnhappe/happe-master | readbdf.m | .m | happe-master/Packages/eeglab14_0_0b/plugins/fieldtrip-20160917/fileio/private/readbdf.m | 3,632 | utf_8 | 9c94d90dc0c8728b0b46e5276747e847 | % readbdf() - Loads selected Records of an EDF or BDF File (European Data Format
% for Biosignals) into MATLAB
% Usage:
% >> [DAT,signal] = readedf(EDF_Struct,Records,Mode);
% Notes:
% Records - List of Records for Loading
% Mode - 0 Default
% 1 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.