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
read_4d_hdr.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
decode_nifti1.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
read_edf.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
yokogawa2grad.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
read_erplabheader.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
write_plexon_nex.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
ft_convert_units.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
ft_datatype.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
ft_apply_montage.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
read_erplabdata.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
read_besa_besa.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
in_fopen_manscan.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
read_biosemi_bdf.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
read_ctf_ascii.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
read_mpi_dap.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
read_neuralynx_bin.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
inifile.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
yokogawa2grad_new.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
read_besa_avr.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
ft_datatype_source.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
xml2struct.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
in_fread_manscan.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
read_ply.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
read_eeglabdata.m
.m
beapp-master/Packages/eeglab14_1_2b/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
lcnbeapp/beapp-master
readbdf.m
.m
beapp-master/Packages/eeglab14_1_2b/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 ...
github
lcnbeapp/beapp-master
ft_platform_supports.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/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/fileio/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_hastoolbox.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/ft_hastoolbox.m
24,831
utf_8
43bae19e25ce108f013f1c401e497630
function [status] = ft_hastoolbox(toolbox, autoadd, silent) % FT_HASTOOLBOX tests whether an external toolbox is installed. Optionally % it will try to determine the path to the toolbox and install it % automatically. % % Use as % [status] = ft_hastoolbox(toolbox, autoadd, silent) % % autoadd = 0 means that it will ...
github
lcnbeapp/beapp-master
read_yokogawa_data_new.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/read_yokogawa_data_new.m
5,623
utf_8
521f307689398a9963b8d12d779650dd
function [dat] = read_yokogawa_data_new(filename, hdr, begsample, endsample, chanindx) % READ_YOKAGAWA_DATA_NEW reads continuous, epoched or averaged MEG data % that has been generated by the Yokogawa MEG system and software % and allows that data to be used in combination with FieldTrip. % % Use as % [dat] = read_y...
github
lcnbeapp/beapp-master
read_plexon_nex.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/read_plexon_nex.m
7,574
utf_8
0034c1c75c81e41e90e48c678ed2ca9e
function [varargout] = read_plexon_nex(filename, varargin) % READ_PLEXON_NEX reads header or data from 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). % %...
github
lcnbeapp/beapp-master
read_bti_m4d.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/read_bti_m4d.m
5,780
utf_8
744eebbd1eba1a856943c7ce24600bc4
function [msi] = read_bti_m4d(filename) % READ_BTI_M4D % % Use as % msi = read_bti_m4d(filename) % Copyright (C) 2007, Robert Oostenveld % % This file is part of FieldTrip, see http://www.fieldtriptoolbox.org % for the documentation and details. % % FieldTrip is free software: you can redistribute it and/or modi...
github
lcnbeapp/beapp-master
read_asa.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/read_asa.m
3,803
utf_8
290f06e1b51f627f99d257a5f1b49465
function [val] = read_asa(filename, elem, format, number, token) % READ_ASA reads a specified element from an ASA file % % val = read_asa(filename, element, type, number) % % where the element is a string such as % NumberSlices % NumberPositions % Rows % Columns % etc. % % and format specifies the datatype a...
github
lcnbeapp/beapp-master
ft_checkdata.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/ft_checkdata.m
57,523
utf_8
361ae795581b786433b88af3f624763d
function [data] = ft_checkdata(data, varargin) % FT_CHECKDATA checks the input data of the main FieldTrip functions, e.g. whether % the type of data strucure corresponds with the required data. If neccessary % and possible, this function will adjust the data structure to the input % requirements (e.g. change dimord, a...
github
lcnbeapp/beapp-master
read_yokogawa_data.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/read_yokogawa_data.m
10,974
utf_8
493fda2552516eab52e525c3387a7397
function [dat] = read_yokogawa_data(filename, hdr, begsample, endsample, chanindx) % READ_YOKAGAWA_DATA reads continuous, epoched or averaged MEG data % that has been generated by the Yokogawa MEG system and software % and allows that data to be used in combination with FieldTrip. % % Use as % [dat] = read_yokogawa_...
github
lcnbeapp/beapp-master
decode_fif.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/decode_fif.m
5,978
utf_8
d33206202f4aa5a18ba3ada03de48664
function [info] = decode_fif(orig) % DECODE_FIF is a helper function for real-time processing of Neuromag data. This % function is used to decode the content of the optional neuromag_fif chunk(s). % % See also DECODE_RES4, DECODE_NIFTI1, SAP2MATLAB % Copyright (C) 2013 Arjen Stolk & Robert Oostenveld % % This file is...
github
lcnbeapp/beapp-master
read_biff.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/read_biff.m
5,799
utf_8
78a82ce91f8383fd0f478b921280d6bb
function [this] = read_biff(filename, opt) % READ_BIFF reads data and header information from a BIFF file % % This is a attemt for a reference implementation to read the BIFF % file format as defined by the Clinical Neurophysiology department of % the University Medical Centre, Nijmegen. % % read all data and inform...
github
lcnbeapp/beapp-master
read_eeglabheader.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/read_eeglabheader.m
2,267
utf_8
f76d1bbb9aa657b05643502ef19fdb10
% read_eeglabheader() - import EEGLAB dataset files % % Usage: % >> header = read_eeglabheader(filename); % % Inputs: % filename - [string] file name % % Outputs: % header - FILEIO toolbox type structure % % Author: Arnaud Delorme, SCCN, INC, UCSD, 2008- %1234567890123456789012345678901234567890123456789012345...
github
lcnbeapp/beapp-master
read_ctf_svl.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/read_ctf_svl.m
3,812
utf_8
d3442d0a013cf5e0a8d4277d99e45206
% [data, hdr] = opensvl(filename) % % Reads a CTF SAM (.svl) file. function [data, hdr] = read_ctf_svl(filename) fid = fopen(filename, 'rb', 'ieee-be', 'ISO-8859-1'); if fid <= 0 error('Could not open SAM file: %s\n', filename); end % --------------------------------------------------------------...
github
lcnbeapp/beapp-master
read_erplabevent.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/read_erplabevent.m
1,786
utf_8
40ece49ff6bd2afd6024b46f210e65fa
% read_erplabevent() - import ERPLAB dataset events % % Usage: % >> event = read_erplabevent(filename, ...); % % Inputs: % filename - [string] file name % % Optional inputs: % 'header' - FILEIO structure header % % Outputs: % event - FILEIO toolbox event structure % % Modified from read_eeglabevent %12...
github
lcnbeapp/beapp-master
read_yokogawa_header_new.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/read_yokogawa_header_new.m
8,887
utf_8
70f6185e29007e7790efc5a8cb91bf23
function hdr = read_yokogawa_header_new(filename) % READ_YOKOGAWA_HEADER_NEW reads the header information from continuous, % epoched or averaged MEG data that has been generated by the Yokogawa % MEG system and software and allows that data to be used in combination % with FieldTrip. % % Use as % [hdr] = read_yokogaw...
github
lcnbeapp/beapp-master
ft_datatype_raw.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/ft_datatype_raw.m
11,070
utf_8
aff8ada66bf72bd5975e10ea4d2a3648
function [data] = ft_datatype_raw(data, varargin) % FT_DATATYPE_RAW describes the FieldTrip MATLAB structure for raw data % % The raw datatype represents sensor-level time-domain data typically % obtained after calling FT_DEFINETRIAL and FT_PREPROCESSING. It contains % one or multiple segments of data, each represente...
github
lcnbeapp/beapp-master
getdimsiz.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/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
read_yokogawa_header.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/read_yokogawa_header.m
8,273
utf_8
ce0d6dbecc09597da7bbb311519c6c84
function hdr = read_yokogawa_header(filename) % READ_YOKOGAWA_HEADER reads the header information from continuous, % epoched or averaged MEG data that has been generated by the Yokogawa % MEG system and software and allows that data to be used in combination % with FieldTrip. % % Use as % [hdr] = read_yokogawa_heade...
github
lcnbeapp/beapp-master
encode_nifti1.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/encode_nifti1.m
4,870
utf_8
9cf92a03587c511a5cec2c8c76a3c2c3
function blob = encode_nifti1(H) %function blob = encode_nifti1(H) % % Encodes a NIFTI-1 header (=> raw 348 bytes (uint8)) from a Matlab structure % that matches the C struct defined in nifti1.h. % % WARNING: This function currently ignores endianness !!! % (C) 2010 S.Klanke blob = uint8(zeros(1,348)); if ~isstruct(...
github
lcnbeapp/beapp-master
read_nervus_header.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/read_nervus_header.m
30,014
utf_8
a7e8259eae22c5af14fb48467f95f2b7
function output = read_nervus_header(filename) % read_nervus_header Returns header information from Nicolet file. % % FILENAME is the file name of a file in the Natus/Nicolet/Nervus(TM) % format (originally designed by Taugagreining HF in Iceland) % % Based on ieeg-portal/Nicolet-Reader % at https://github.com...
github
lcnbeapp/beapp-master
avw_hdr_read.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/avw_hdr_read.m
16,654
utf_8
f63f3dbd244a89c6108eff59453680c3
function [ avw, machine ] = avw_hdr_read(fileprefix, machine, verbose) % avw_hdr_read - read Analyze format data header (*.hdr) % % [ avw, machine ] = avw_hdr_read(fileprefix, [machine], [verbose]) % % fileprefix - string filename (without .hdr); the file name % can be given as a full path or relative to ...
github
lcnbeapp/beapp-master
read_stl.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/read_stl.m
4,432
utf_8
6aec08043b6655fd9efe5194e20bf28f
function [pnt, tri, nrm] = read_stl(filename) % READ_STL reads a triangulation from an ascii or binary *.stl file, which % is a file format native to the stereolithography CAD software created by % 3D Systems. % % Use as % [pnt, tri, nrm] = read_stl(filename) % % The format is described at http://en.wikipedia.org/wi...
github
lcnbeapp/beapp-master
read_itab_mhd.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/read_itab_mhd.m
12,518
utf_8
d0ebd0b4e1de627d76cb523010d16ec7
function mhd = read_itab_mhd(filename) fid = fopen(filename, 'rb'); % Name of structure mhd.stname = fread(fid, [1 10], 'uint8=>char'); % Header identifier (VP_BIOMAG) mhd.stver = fread(fid, [1 8], 'uint8=>char'); % Header version mhd.stendian = fread(fid, [1 4], 'uint8=>char'); % ...
github
lcnbeapp/beapp-master
read_plexon_plx.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/read_plexon_plx.m
20,283
utf_8
ec115cb91003e60359655fdd73fdfdb6
function [varargout] = read_plexon_plx(filename, varargin) % READ_PLEXON_PLX reads header or data from a Plexon *.plx 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). % %...
github
lcnbeapp/beapp-master
read_neurosim_evolution.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/read_neurosim_evolution.m
4,493
utf_8
611253a932a6acc90c0b61a442dc58a5
function [hdr, dat] = read_neurosim_evolution(filename, varargin) % READ_NEUROSIM_EVOLUTION reads the "evolution" file that is written % by Jan van der Eerden's NeuroSim software. When a directory is used % as input, the default filename 'evolution' is read. % % Use as % [hdr, dat] = read_neurosim_evolution(filename...
github
lcnbeapp/beapp-master
read_eeglabevent.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/read_eeglabevent.m
3,698
utf_8
d48c0efc8368b120e96562164a153a88
% read_eeglabevent() - import EEGLAB dataset events % % Usage: % >> event = read_eeglabevent(filename, ...); % % Inputs: % filename - [string] file name % % Optional inputs: % 'header' - FILEIO structure header % % Outputs: % event - FILEIO toolbox event structure % % Author: Arnaud Delorme, SCCN, INC, ...
github
lcnbeapp/beapp-master
read_bti_ascii.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/read_bti_ascii.m
2,240
utf_8
560f3413b1fc96661f8ed42823efdc13
function [file] = read_bti_ascii(filename) % READ_BTI_ASCII reads general data from a BTI configuration file % % The file should be formatted like % Group: % item1 : value1a value1b value1c % item2 : value2a value2b value2c % item3 : value3a value3b value3c % item4 : value4a value4b value4c ...
github
lcnbeapp/beapp-master
openbdf.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/fileio/private/openbdf.m
6,812
utf_8
cb49358a2a955b165a5c50127c25e3d8
% openbdf() - Opens an BDF File (European Data Format for Biosignals) in MATLAB (R) % % Usage: % >> EDF=openedf(FILENAME) % % Note: About EDF -> www.biosemi.com/faq/file_format.htm % % Author: Alois Schloegl, 5.Nov.1998 % % See also: readedf() % Copyright (C) 1997-1998 by Alois Schloegl % a.schloegl@ieee.org % ...
github
lcnbeapp/beapp-master
ft_trialfun_general.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/trialfun/ft_trialfun_general.m
13,804
utf_8
24b04b8f0e079fd37494db20f8d6a99a
function [trl, event] = ft_trialfun_general(cfg) % FT_TRIALFUN_GENERAL determines trials/segments in the data that are % interesting for analysis, using the general event structure returned % by read_event. This function is independent of the dataformat % % The trialdef structure can contain the following specificatio...
github
lcnbeapp/beapp-master
ft_trialfun_realtime.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/trialfun/ft_trialfun_realtime.m
4,420
utf_8
d7133e3da082881a031513a257c0a2d9
function trl = ft_trialfun_realtime(cfg) % FT_TRIALFUN_REALTIME can be used to segment a continuous stream of % data in real-time. Trials are defined as [begsample endsample offset % condition] % % The configuration structure can contain the following specifications % cfg.minsample = the last sample number that was...
github
lcnbeapp/beapp-master
select_channel_list.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/trialfun/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
ft_headmodel_fns.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/forward/ft_headmodel_fns.m
5,517
utf_8
f2babb12e0dbf26d42ff2aa1a9791792
function headmodel = ft_headmodel_fns(seg, varargin) % FT_HEADMODEL_FNS creates the volume conduction structure to be used % in the FNS forward solver. % % Use as % headmodel = ft_headmodel_fns(seg, ...) % % Optional input arguments should be specified in key-value pairs and % can include % tissuecond = matr...
github
lcnbeapp/beapp-master
ft_convert_units.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/forward/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/forward/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
ft_headmodel_slab.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/forward/ft_headmodel_slab.m
3,563
utf_8
a25dc7acd56e431b9a85280512392362
function headmodel = ft_headmodel_slab(mesh1, mesh2, Pc, varargin) % FT_HEADMODEL_SLAB creates an EEG volume conduction model that % is described with an infinite conductive slab. You can think % of this as two parallel planes containing a mass of conductive % material (e.g. water) and externally to them a non-conduct...
github
lcnbeapp/beapp-master
ft_prepare_vol_sens.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/forward/ft_prepare_vol_sens.m
26,259
utf_8
225596851f014058749908d3367e615b
function [headmodel, sens] = ft_prepare_vol_sens(headmodel, sens, varargin) % FT_PREPARE_VOL_SENS does some bookkeeping to ensure that the volume % conductor model and the sensor array are ready for subsequent forward % leadfield computations. It takes care of some pre-computations that can % be done efficiently prior...
github
lcnbeapp/beapp-master
ft_headmodel_halfspace.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/forward/ft_headmodel_halfspace.m
3,238
utf_8
1c182d8deabdfeefe195129d7faa2b2d
function headmodel = ft_headmodel_halfspace(mesh, Pc, varargin) % FT_HEADMODEL_HALFSPACE creates an EEG volume conduction model that % is described with an infinite conductive halfspace. You can think % of this as a plane with on one side a infinite mass of conductive % material (e.g. water) and on the other side non-...
github
lcnbeapp/beapp-master
ft_headmodel_dipoli.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/forward/ft_headmodel_dipoli.m
7,156
utf_8
aa51271ac3c67c39dcc78a6d6937d469
function headmodel = ft_headmodel_dipoli(mesh, varargin) % FT_HEADMODEL_DIPOLI creates a volume conduction model of the head % using the boundary element method (BEM) for EEG. This function takes % as input the triangulated surfaces that describe the boundaries and % returns as output a volume conduction model which c...
github
lcnbeapp/beapp-master
ft_headmodel_openmeeg.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/forward/ft_headmodel_openmeeg.m
6,801
utf_8
88866540a84637e828c25e8c1d20d1ed
function headmodel = ft_headmodel_openmeeg(mesh, varargin) % FT_HEADMODEL_OPENMEEG creates a volume conduction model of the % head using the boundary element method (BEM). This function takes % as input the triangulated surfaces that describe the boundaries and % returns as output a volume conduction model which can b...
github
lcnbeapp/beapp-master
ft_datatype_sens.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/forward/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
pinvNx2.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/forward/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
normals.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/forward/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
meg_ini.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/forward/private/meg_ini.m
5,362
utf_8
57aac4444f8347f1d9de9ff52daf0147
function forwpar=meg_ini(vc,center,order,sens,refs,gradlocs,weights) % initializes MEG-forward calculation % usage: forwpar=meg_ini(vc,center,order,sens,refs,gradlocs,weights) % % input: % vc: Nx6 matrix; N is the number of surface points % the first three numbers in each row are the location % and the seco...
github
lcnbeapp/beapp-master
eeg_halfspace_monopole.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/forward/private/eeg_halfspace_monopole.m
3,463
utf_8
20c31956ac04fd0bf5615016a9aec23e
function [lf] = eeg_halfspace_monopole(rd, elc, vol) % EEG_HALFSPACE_MONOPOLE calculate the halfspace medium leadfield % on positions pnt for a monopole at position rd and conductivity cond % The halfspace solution requires a plane dividing a conductive zone of % conductivity cond, from a non coductive zone (cond = 0)...
github
lcnbeapp/beapp-master
eeg_halfspace_medium_leadfield.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/forward/private/eeg_halfspace_medium_leadfield.m
3,463
utf_8
b68f2792331216de0c239ced9734fe42
function [lf] = eeg_halfspace_medium_leadfield(rd, elc, vol) % HALFSPACE_MEDIUM_LEADFIELD calculate the halfspace medium leadfield % on positions pnt for a dipole at position rd and conductivity cond % The halfspace solution requires a plane dividing a conductive zone of % conductivity cond, from a non coductive zone ...
github
lcnbeapp/beapp-master
ft_warning.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/forward/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
leadsphere_all.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/forward/private/leadsphere_all.m
2,291
utf_8
3d513e7f5d8a9f4a12ced5392ee85220
function out=leadsphere_chans(xloc,sensorloc,sensorori) % usage: out=leadsphere_chans(xloc,sensorloc,sensorori) % Copyright (C) 2003, Guido Nolte % % This file is part of FieldTrip, see http://www.fieldtriptoolbox.org % for the documentation and details. % % FieldTrip is free software: you can redistribute it and/o...
github
lcnbeapp/beapp-master
ft_hastoolbox.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/forward/private/ft_hastoolbox.m
24,831
utf_8
43bae19e25ce108f013f1c401e497630
function [status] = ft_hastoolbox(toolbox, autoadd, silent) % FT_HASTOOLBOX tests whether an external toolbox is installed. Optionally % it will try to determine the path to the toolbox and install it % automatically. % % Use as % [status] = ft_hastoolbox(toolbox, autoadd, silent) % % autoadd = 0 means that it will ...
github
lcnbeapp/beapp-master
mesh2edge.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/forward/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
project_elec.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/forward/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
eeg_slab_monopole.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/forward/private/eeg_slab_monopole.m
4,375
utf_8
1ffef5225bbeaf47b2a91906c7df7b3a
function [lf] = eeg_slab_monopole(rd, elc, vol) % EEG_SLAB_MONOPOLE calculate the strip medium leadfield % on positions pnt for a monopole at position rd and conductivity cond % The halfspace solution requires a plane dividing a conductive zone of % conductivity cond, from a non coductive zone (cond = 0) % % [l...
github
lcnbeapp/beapp-master
eeg_leadfield1.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/forward/private/eeg_leadfield1.m
3,868
utf_8
84a91d4f1daf6dc32450398058ef4c3c
function lf = eeg_leadfield1(R, elc, vol) % EEG_LEADFIELD1 electric leadfield for a dipole in a single sphere % % [lf] = eeg_leadfield1(R, elc, vol) % % with input arguments % R position dipole (vector of length 3) % elc position electrodes % and vol being a structure with the elements % vol.r ...
github
lcnbeapp/beapp-master
meg_forward.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/forward/private/meg_forward.m
3,954
utf_8
e674beba8b799e44fadd7b5e0ee82b9a
function field=meg_forward(dip_par,forwpar) % calculates the magnetic field of n dipoles % in a realistic volume conductor % usage: field=meg_forward(dip_par,forwpar) % % input: % dip_par nx6 matrix where each row contains location (first 3 numbers) % and moment (second 3 numbers) of a dipole % forwpar structur...
github
lcnbeapp/beapp-master
leadfield_openmeeg.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/forward/private/leadfield_openmeeg.m
16,073
utf_8
59380282979799a30ccf58093f1bc3d8
function [lp, voxels_in] = leadfield_openmeeg ( voxels, vol, sens, varargin ) % FT_OM_COMPUTE_LEAD uses OpenMEEG to compute the lead fields / potentials % using the boundary element method (BEM). % The inputs are as follows: % voxels = an [Nx3] array of voxel locations. % vol = the volume structure co...
github
lcnbeapp/beapp-master
firwsord.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/preproc/private/firwsord.m
2,973
utf_8
a2d4fcfe22b1570834add343cd9b6bc0
% firwsord() - Estimate windowed sinc FIR filter order depending on % window type and requested transition band width % % Usage: % >> [m, dev] = firwsord(wtype, fs, df); % >> m = firwsord('kaiser', fs, df, dev); % % Inputs: % wtype - char array window type. 'rectangular', 'bartlett', 'hann', % ...
github
lcnbeapp/beapp-master
minphaserceps.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/preproc/private/minphaserceps.m
2,151
utf_8
57715581f54dbcadc7e0a0bda70ce5c9
% rcepsminphase() - Convert FIR filter coefficient to minimum phase % % Usage: % >> b = minphaserceps(b); % % Inputs: % b - FIR filter coefficients % % Outputs: % bMinPhase - minimum phase FIR filter coefficients % % Author: Andreas Widmann, University of Leipzig, 2013 % % References: % [1] Smith III, O. J. (20...
github
lcnbeapp/beapp-master
firws.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/preproc/private/firws.m
3,217
utf_8
c683c72e05eaadd0e53428ab481f880a
%firws() - Designs windowed sinc type I linear phase FIR filter % % Usage: % >> b = firws(m, f); % >> b = firws(m, f, w); % >> b = firws(m, f, t); % >> b = firws(m, f, t, w); % % Inputs: % m - filter order (mandatory even) % f - vector or scalar of cutoff frequency/ies (-6 dB; % pi rad / sample) % % O...
github
lcnbeapp/beapp-master
kaiserbeta.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/preproc/private/kaiserbeta.m
1,569
utf_8
18e3b152604b8dd8d1bb7052e720f3a6
% kaiserbeta() - Estimate Kaiser window beta % % Usage: % >> beta = pop_kaiserbeta(dev); % % Inputs: % dev - scalar maximum passband deviation/ripple % % Output: % beta - scalar Kaiser window beta % % References: % [1] Proakis, J. G., & Manolakis, D. G. (1996). Digital Signal % Processing: Prin...
github
lcnbeapp/beapp-master
invfirwsord.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/preproc/private/invfirwsord.m
2,900
utf_8
1ede4ed306eda03dcaa8daffa9426079
% invfirwsord() - Estimate windowed sinc FIR filter transition band width % depending on filter order and window type % % Usage: % >> [df, dev] = invfirwsord(wtype, fs, m); % >> df = invfirwsord('kaiser', fs, m, dev); % % Inputs: % wtype - char array window type. 'rectangular', 'bartlett', 'hann'...
github
lcnbeapp/beapp-master
windows.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/preproc/private/windows.m
3,152
utf_8
13d9e2d7d608f7550b77f84278c89184
% windows() - Symmetric window functions % % Usage: % >> h = windows(t, m); % >> h = windows(t, m, a); % % Inputs: % t - char array 'rectangular', 'bartlett', 'hann', 'hamming', % 'blackman', 'blackmanharris', 'kaiser', or 'tukey' % m - scalar window length % % Optional inputs: % a - scalar or vector wi...
github
lcnbeapp/beapp-master
ft_warning.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/preproc/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
fir_filterdcpadded.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/preproc/private/fir_filterdcpadded.m
2,934
utf_8
a5287ea8667b904280539687a04797ca
% fir_filterdcpadded() - Pad data with DC constant and filter % % Usage: % >> data = fir_filterdcpadded(b, a, data, causal); % % Inputs: % b - vector of filter coefficients % a - 1 % data - raw data (times x chans) % causal - boolean perform causal filtering {default 0}...
github
lcnbeapp/beapp-master
plotfresp.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/preproc/private/plotfresp.m
5,213
utf_8
02ff3bdc63f5c3410460734e2a7378fe
% plotfresp() - Plot a filter's impulse, step, magnitude, and phase response % % Usage: % >> plotfresp(b, a, nfft, fs, causal); % % Inputs: % b - vector numerator coefficients % % Optional inputs: % a - scalar or vector denominator coefficients (IIR support is % experimental!) {default 1} % nf...
github
lcnbeapp/beapp-master
qsublist.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/qsub/qsublist.m
8,076
utf_8
d9f7d454a9f8d6bc5991aa409e239c11
function retval = qsublist(cmd, jobid, pbsid) % QSUBLIST is a helper function that is used to keep track of all the jobs in a % submitted batch. specifically, it is used to maintain the mapping between the % job identifier in the batch queueing system and MATLAB. % % Use as % qsublist('list') % qsublist('killall')...
github
lcnbeapp/beapp-master
qsubcellfun.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/qsub/qsubcellfun.m
19,264
utf_8
ed7719203341c9d8668d006d2ffc44bb
function varargout = qsubcellfun(fname, varargin) % QSUBCELLFUN applies a function to each element of a cell-array. The % function execution is done in parallel using the Torque, SGE, PBS or % SLURM batch queue system. % % Use as % argout = qsubcellfun(fname, x1, x2, ...) % % This function has a number of optional a...
github
lcnbeapp/beapp-master
qsublisten.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/qsub/qsublisten.m
4,326
utf_8
6ac189cba48025bdbd36f682f9b258cc
function num = qsublisten(callback, varargin) % QSUBLISTEN checks whether jobs, submitted by qsubfeval, have been % completed. Whenever a job returns, it executes the provided callback function % (should be a function handle), with the job ID as an input argument. Results % can then be retrieved by calling QSUBGET. ...
github
lcnbeapp/beapp-master
ft_platform_supports.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/qsub/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/qsub/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_checkopt.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/qsub/private/ft_checkopt.m
5,085
utf_8
c8bce4359cc4a8be5591788b5984166d
function opt = ft_checkopt(opt, key, allowedtype, allowedval) % FT_CHECKOPT does a validity test on the types and values of a configuration % structure or cell-array with key-value pairs. % % Use as % opt = ft_checkopt(opt, key) % opt = ft_checkopt(opt, key, allowedtype) % opt = ft_checkopt(opt, key, allowedtype...
github
lcnbeapp/beapp-master
ft_statfun_roc.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/statfun/ft_statfun_roc.m
5,415
utf_8
a8e88fc1a733545abfe4d0608e309d53
function [s, cfg] = ft_statfun_roc(cfg, dat, design) % FT_STATFUN_ROC computes the area under the curve (AUC) of the % Receiver Operator Characteristic (ROC). This is a measure of the % separability of the data divided over two conditions. The AUC can % be used to test statistical significance of being able to predict...
github
lcnbeapp/beapp-master
ft_warning.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/statfun/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_realtime_ouunpod.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/realtime/online_eeg/ft_realtime_ouunpod.m
20,299
utf_8
e7df0f8c5ebb142a8a4f339bb345f448
function ft_realtime_ouunpod(cfg) % FT_REALTIME_OUUNPOD is an example realtime application for online power % estimation and visualisation. It is designed for use with the OuUnPod, an % OpenEEG based low cost EEG system with two channels, but in principle % should work for any EEG or MEG system. % % Use as % ft_real...
github
lcnbeapp/beapp-master
ft_realtime_oddball.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/realtime/online_eeg/ft_realtime_oddball.m
13,163
utf_8
d5a3400a1168a9e53bccbb79f889bebb
function ft_realtime_oddball(cfg) % FT_REALTIME_ODDBALL is an realtime application that computes an online % average for a standard and deviant condition. The ERPs/ERFs are plotted, % together with the difference as t-values. It should work both for EEG and % MEG, as long as there are two triggers present % % Use as %...
github
lcnbeapp/beapp-master
ft_omri_info_from_header.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/realtime/online_mri/ft_omri_info_from_header.m
4,361
utf_8
97589ff2ee8f9fa7ee376b4b628de647
function S = ft_omri_info_from_header(hdr) % function S = ft_omri_info_from_header(hdr) % % Convenience function to retrieve most important MR information % from a given header (H) as retrieved from a FieldTrip buffer. % Will look at both NIFTI-1 and SiemensAP fields, if present, and % give preference to SiemensAP inf...
github
lcnbeapp/beapp-master
encode_nifti1.m
.m
beapp-master/Packages/eeglab14_1_2b/plugins/fieldtrip-20160917/realtime/online_mri/private/encode_nifti1.m
4,870
utf_8
9cf92a03587c511a5cec2c8c76a3c2c3
function blob = encode_nifti1(H) %function blob = encode_nifti1(H) % % Encodes a NIFTI-1 header (=> raw 348 bytes (uint8)) from a Matlab structure % that matches the C struct defined in nifti1.h. % % WARNING: This function currently ignores endianness !!! % (C) 2010 S.Klanke blob = uint8(zeros(1,348)); if ~isstruct(...