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 | philippboehmsturm/antx-master | printstruct.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/utilities/printstruct.m | 4,418 | utf_8 | 565d732cbf17defe563a87964b4f1ecb | function str = printstruct(name, val)
% PRINTSTRUCT converts a Matlab structure to text which can be
% interpreted by Matlab, resulting in the original structure.
% Copyright (C) 2006, Robert Oostenveld
%
% This file is part of FieldTrip, see http://www.ru.nl/neuroimaging/fieldtrip
% for the documentation and details... |
github | philippboehmsturm/antx-master | ft_transform_geometry.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/utilities/ft_transform_geometry.m | 3,850 | utf_8 | 0810eea6fb2c18145ce615b7f950718a | function [output] = ft_transform_geometry(transform, input)
% FT_TRANSFORM_GEOMETRY applies a homogeneous coordinate transformation to
% a structure with geometric information. These objects include:
% - volume conductor geometry, consisting of a mesh, a set of meshes, a
% single sphere, or multiple spheres.
% ... |
github | philippboehmsturm/antx-master | warning_once.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/utilities/private/warning_once.m | 3,060 | utf_8 | f046009e4f6ffe5745af9c5e527614e8 | function [ws warned] = warning_once(varargin)
%
% Use as
% warning_once(string)
% or
% warning_once(string, timeout)
% or
% warning_once(id, string, timeout)
% where timeout should be inf if you don't want to see the warning ever
% again. The default timeout value is 60 seconds.
%
% Can be used instead of the MATLAB... |
github | philippboehmsturm/antx-master | nanmean.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/utilities/private/nanmean.m | 2,121 | utf_8 | 7e0ebd9ca56f2cd79f89031bbccebb9a | % nanmean() - Average, not considering NaN values
%
% Usage: same as mean()
% Author: Arnaud Delorme, CNL / Salk Institute, 16 Oct 2002
%123456789012345678901234567890123456789012345678901234567890123456789012
% Copyright (C) 2001 Arnaud Delorme, Salk Institute, arno@salk.edu
%
% This program is free software; you c... |
github | philippboehmsturm/antx-master | ft_plot_slice.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/plotting/ft_plot_slice.m | 6,993 | utf_8 | 226f857d7fa8bca676385baa261dd08e | function [h, T2] = ft_plot_slice(dat, varargin)
% FT_PLOT_SLICE cuts a 2-D slice from a 3-D volume and interpolates
% if necessary
%
% Use as
% ft_plot_slice(dat, ...)
%
% Additional options should be specified in key-value pairs and can be
% 'transform' a 4x4 homogeneous transformation matrix specifying the ma... |
github | philippboehmsturm/antx-master | ft_select_range.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/plotting/ft_select_range.m | 8,056 | utf_8 | 9c9b96f6d9fa1e6df6e589bb084c51e8 | function ft_select_range(handle, eventdata, varargin)
% FT_SELECT_RANGE is a helper function that can be used as callback function
% in a figure. It allows the user to select a horizontal or a vertical
% range, or one or multiple boxes.
%
% Example
% x = randn(10,1);
% y = randn(10,1);
% figure; plot(x, y, '.');... |
github | philippboehmsturm/antx-master | ft_select_channel.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/plotting/ft_select_channel.m | 5,797 | utf_8 | 4c90523b87dbe7921b8e5e96364644e2 | function ft_select_channel(handle, eventdata, varargin)
% FT_SELECT_CHANNEL is a helper function that can be used as callback function
% in a figure. It allows the user to select a channel. The channel labels
% are returned.
%
% Use as
% label = ft_select_channel(h, eventdata, ...)
% The first two arguments are auto... |
github | philippboehmsturm/antx-master | ft_apply_montage.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/plotting/private/ft_apply_montage.m | 9,812 | utf_8 | c30fdecc34ab9678cc26828eea0538c1 | function [sens] = ft_apply_montage(sens, 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 sensor array. The sen... |
github | philippboehmsturm/antx-master | select3dtool.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/plotting/private/select3dtool.m | 2,713 | utf_8 | fdf7d572638e6ebd059c63f233d26704 | function select3dtool(arg)
%SELECT3DTOOL A simple tool for interactively obtaining 3-D coordinates
%
% SELECT3DTOOL(FIG) Specify figure handle
%
% Example:
% surf(peaks);
% select3dtool;
% % click on surface
if nargin<1
arg = gcf;
end
if ~ishandle(arg)
feval(arg);
return;
end
%% initialize gui %%
fig... |
github | philippboehmsturm/antx-master | inside_contour.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/plotting/private/inside_contour.m | 1,106 | utf_8 | 37d10e5d9a05c79551aac24c328e34aa | 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 c... |
github | philippboehmsturm/antx-master | ft_specest_mtmconvol.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/specest/ft_specest_mtmconvol.m | 17,419 | utf_8 | c6cfb36cc212009ed5bc834211e299aa | function [spectrum,ntaper,freqoi,timeoi] = ft_specest_mtmconvol(dat, time, varargin)
% SPECEST_MTMCONVOL performs wavelet convolution in the time domain
% by multiplication in the frequency domain
%
% Use as
% [spectrum,freqoi,timeoi] = specest_mtmconvol(dat,time,...)
% where
% dat = matrix of chan*sample
% ... |
github | philippboehmsturm/antx-master | ft_specest_convol.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/specest/ft_specest_convol.m | 7,359 | utf_8 | ac22d33e4455715f0e05fecaf3d8b412 | function [spectrum, freqoi, timeoi] = ft_specest_convol(dat, time, varargin)
% SPECEST_CONVOL performs wavelet convolution in the time domain by
% convolution with Morlet's wavelets.
%
% Use as
% [spectrum,freqoi,timeoi] = specest_convol(dat,time,...)
% where
% dat = matrix of chan*sample
% time = vecto... |
github | philippboehmsturm/antx-master | ft_specest_mtmfft.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/specest/ft_specest_mtmfft.m | 7,105 | utf_8 | 90574c21677d7ac87f08ed43d83b4e2a | function [spectrum,ntaper,freqoi] = ft_specest_mtmfft(dat, time, varargin)
% SPECEST_MTMFFT computes a fast Fourier transform using multitapering with
% the DPSS sequence or using a variety of single tapers
%
% Use as
% [spectrum,freqoi] = specest_mtmfft(dat,time...)
% where
% dat = matrix of chan*sample ... |
github | philippboehmsturm/antx-master | postpad.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/specest/private/postpad.m | 2,013 | utf_8 | 2c9539d77ff0f85c9f89108f4dc811e0 | % Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000, 2002, 2004, 2005,
% 2006, 2007, 2008, 2009 John W. Eaton
%
% This file is part of Octave.
%
% Octave is free software; you can redistribute it and/or modify it
% under the terms of the GNU General Public License as published by
% the Free Software Founda... |
github | philippboehmsturm/antx-master | sftrans.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/specest/private/sftrans.m | 7,947 | utf_8 | f64cb2e7d19bcdc6232b39d8a6d70e7c | % Copyright (C) 1999 Paul Kienzle
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or
% (at your option) any later version.
%
% This program is distributed in t... |
github | philippboehmsturm/antx-master | hanning.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/specest/private/hanning.m | 2,015 | utf_8 | cac22a4ad0f0b038d6f17439d97dfc36 | function [tap] = hanning(n, str)
%HANNING Hanning window.
% HANNING(N) returns the N-point symmetric Hanning window in a column
% vector. Note that the first and last zero-weighted window samples
% are not included.
%
% HANNING(N,'symmetric') returns the same result as HANNING(N).
%
% HANNING(N,'periodic'... |
github | philippboehmsturm/antx-master | filtfilt.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/specest/private/filtfilt.m | 3,297 | iso_8859_1 | d01a26a827bc3379f05bbc57f46ac0a9 | % Copyright (C) 1999 Paul Kienzle
% Copyright (C) 2007 Francesco Potortì
% Copyright (C) 2008 Luca Citi
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or
% (a... |
github | philippboehmsturm/antx-master | bilinear.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/specest/private/bilinear.m | 4,339 | utf_8 | 17250db27826cad87fa3384823e1242f | % Copyright (C) 1999 Paul Kienzle
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or
% (at your option) any later version.
%
% This program is distributed in t... |
github | philippboehmsturm/antx-master | warning_once.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/specest/private/warning_once.m | 3,060 | utf_8 | f046009e4f6ffe5745af9c5e527614e8 | function [ws warned] = warning_once(varargin)
%
% Use as
% warning_once(string)
% or
% warning_once(string, timeout)
% or
% warning_once(id, string, timeout)
% where timeout should be inf if you don't want to see the warning ever
% again. The default timeout value is 60 seconds.
%
% Can be used instead of the MATLAB... |
github | philippboehmsturm/antx-master | butter.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/specest/private/butter.m | 3,559 | utf_8 | ad82b4c04911a5ea11fd6bd2cc5fd590 | % Copyright (C) 1999 Paul Kienzle
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or
% (at your option) any later version.
%
% This program is distributed in t... |
github | philippboehmsturm/antx-master | nan_sum.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/nan_sum.m | 1,345 | utf_8 | ddf503cdb0cfbf8060276a3304a2c60e | % nan_sum() - Take the sum, not considering NaN values
%
% Usage: same as sum()
% Author: Arnaud Delorme, CNL / Salk Institute, 16 Oct 2002
%123456789012345678901234567890123456789012345678901234567890123456789012
% Copyright (C) 2001 Arnaud Delorme, Salk Institute, arno@salk.edu
%
% This program is free software; y... |
github | philippboehmsturm/antx-master | avw_hdr_make.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/avw_hdr_make.m | 4,182 | utf_8 | 8ca7457260adb412763652b40d1495c4 | 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 | philippboehmsturm/antx-master | normals.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/normals.m | 2,391 | utf_8 | 62a8e5ee7314da0eadbc13fa82ab95c1 | function [nrm] = normals(pnt, dhk, opt);
% NORMALS compute the surface normals of a triangular mesh
% for each triangle or for each vertex
%
% [nrm] = normals(pnt, dhk, opt)
% where opt is either 'vertex' or 'triangle'
% Copyright (C) 2002-2007, Robert Oostenveld
%
% This file is part of FieldTrip, see http://www.ru.... |
github | philippboehmsturm/antx-master | rejectvisual_trial.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/rejectvisual_trial.m | 9,119 | utf_8 | 945cc5cc5b3b80e76833663a16adfc5f | function [chansel, trlsel, cfg] = rejectvisual_trial(cfg, data);
% SUBFUNCTION for ft_rejectvisual
% determine the initial selection of trials and channels
nchan = length(data.label);
ntrl = length(data.trial);
cfg.channel = ft_channelselection(cfg.channel, data.label);
trlsel = true(1,ntrl);
chansel = false(1,ncha... |
github | philippboehmsturm/antx-master | wizard_base.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/wizard_base.m | 11,678 | utf_8 | 98f06b96b2740061c19fde46d418bc51 | 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 | philippboehmsturm/antx-master | spikesort.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/spikesort.m | 5,888 | utf_8 | 5c6df4c516e14b804e816e99bc002149 | 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 algori... |
github | philippboehmsturm/antx-master | nansum.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/nansum.m | 2,076 | utf_8 | d6579c8dc9f4712aa24dfce348a7bd56 | % nansum() - Take the sum, not considering NaN values
%
% Usage: same as sum()
% Author: Arnaud Delorme, CNL / Salk Institute, 16 Oct 2002
%123456789012345678901234567890123456789012345678901234567890123456789012
% Copyright (C) 2001 Arnaud Delorme, Salk Institute, arno@salk.edu
%
% This program is free software; yo... |
github | philippboehmsturm/antx-master | shiftpredict.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/shiftpredict.m | 8,737 | utf_8 | e5898e2a69f8ec80039bf23508a498bc | 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 | philippboehmsturm/antx-master | postpad.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/postpad.m | 2,013 | utf_8 | 2c9539d77ff0f85c9f89108f4dc811e0 | % Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000, 2002, 2004, 2005,
% 2006, 2007, 2008, 2009 John W. Eaton
%
% This file is part of Octave.
%
% Octave is free software; you can redistribute it and/or modify it
% under the terms of the GNU General Public License as published by
% the Free Software Founda... |
github | philippboehmsturm/antx-master | statistics_wrapper.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/statistics_wrapper.m | 23,511 | utf_8 | dcc5a9eab9191a3b0e10008f11254e8d | 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 TIME... |
github | philippboehmsturm/antx-master | arrow.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/arrow.m | 58,199 | utf_8 | 84edd90f9c83830a3a85aec7c3bbbc47 | function [h,yy,zz] = arrow(varargin)
% ARROW Draw a line with an arrowhead.
%
% ARROW(Start,Stop) draws a line with an arrow from Start to Stop (points
% should be vectors of length 2 or 3, or matrices with 2 or 3
% columns), and returns the graphics handle of the arrow(s).
%
% ARROW uses the mouse (cl... |
github | philippboehmsturm/antx-master | read_besa_src.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/read_besa_src.m | 2,719 | utf_8 | 6a82938b50944385d04a571d87fb8cf8 | 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 ... |
github | philippboehmsturm/antx-master | csd2transfer.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/csd2transfer.m | 25,912 | utf_8 | 514b6387ff408463962d6332c65322a2 | function [output] = csd2transfer(freq, varargin)
% CSD2TRANSFER computes the transfer-function from frequency domain data
% using the Wilson-Burg algorithm. The transfer function can be used for
% the computation of directional measures of connectivity, such as granger
% causality, partial directed coherence, or direc... |
github | philippboehmsturm/antx-master | splint.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/splint.m | 6,073 | utf_8 | effb3e13a62ccd8d4c5ce226d6e17a2c | function [V2, L2, L1] = splint(elc1, V1, elc2)
% 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 electrode positions where p... |
github | philippboehmsturm/antx-master | find_nearest.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/find_nearest.m | 5,969 | utf_8 | e1ece21f9a10e0702c7af8f405936b51 | 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 | philippboehmsturm/antx-master | inifile.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/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 | philippboehmsturm/antx-master | read_besa_avr.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/read_besa_avr.m | 3,929 | utf_8 | 9e36880bf3e6eb7d211a5dea7ce2d885 | 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 | philippboehmsturm/antx-master | sftrans.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/sftrans.m | 7,947 | utf_8 | f64cb2e7d19bcdc6232b39d8a6d70e7c | % Copyright (C) 1999 Paul Kienzle
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or
% (at your option) any later version.
%
% This program is distributed in t... |
github | philippboehmsturm/antx-master | filtfilt.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/filtfilt.m | 3,297 | iso_8859_1 | d01a26a827bc3379f05bbc57f46ac0a9 | % Copyright (C) 1999 Paul Kienzle
% Copyright (C) 2007 Francesco Potortì
% Copyright (C) 2008 Luca Citi
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or
% (a... |
github | philippboehmsturm/antx-master | nanstd.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/nanstd.m | 2,445 | utf_8 | 5bfd7c73ce6d67e3163bdc51d464b590 | % nanstd() - std, not considering NaN values
%
% Usage: same as std()
% Author: Arnaud Delorme, CNL / Salk Institute, Sept 2003
%123456789012345678901234567890123456789012345678901234567890123456789012
% Copyright (C) 2003 Arnaud Delorme, Salk Institute, arno@salk.edu
%
% This program is free software; you can redis... |
github | philippboehmsturm/antx-master | avw_img_write.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/avw_img_write.m | 14,014 | utf_8 | a7cdce842fad1e63e84c6e80be83dbcd | 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 | philippboehmsturm/antx-master | bilinear.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/bilinear.m | 4,339 | utf_8 | 17250db27826cad87fa3384823e1242f | % Copyright (C) 1999 Paul Kienzle
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or
% (at your option) any later version.
%
% This program is distributed in t... |
github | philippboehmsturm/antx-master | select_channel_list.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/select_channel_list.m | 5,910 | utf_8 | 809c334eb560bace022f65305426b3a5 | 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, in... |
github | philippboehmsturm/antx-master | artifact_viewer.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/artifact_viewer.m | 6,725 | utf_8 | 291cb59d64c23a5d4b2eb22de3ac3896 | 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 cummulated
% z-value
% Copyright (C) 2004-2006, Jan-Mathijs Schoffelen & Robert Oostenveld
%
% This file is part of FieldTrip, s... |
github | philippboehmsturm/antx-master | rejectvisual_summary.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/rejectvisual_summary.m | 17,414 | utf_8 | 2918f7fe9ab915b102683960eeabd968 | function [chansel, trlsel, cfg] = rejectvisual_summary(cfg, data)
% REJECTVISUAL_SUMMARY: subfunction for ft_rejectvisual
% determine the initial selection of trials and channels
nchan = length(data.label);
ntrl = length(data.trial);
cfg.channel = ft_channelselection(cfg.channel, data.label);
trlsel = true(1,ntrl)... |
github | philippboehmsturm/antx-master | warning_once.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/warning_once.m | 3,060 | utf_8 | f046009e4f6ffe5745af9c5e527614e8 | function [ws warned] = warning_once(varargin)
%
% Use as
% warning_once(string)
% or
% warning_once(string, timeout)
% or
% warning_once(id, string, timeout)
% where timeout should be inf if you don't want to see the warning ever
% again. The default timeout value is 60 seconds.
%
% Can be used instead of the MATLAB... |
github | philippboehmsturm/antx-master | rejectvisual_channel.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/rejectvisual_channel.m | 10,295 | utf_8 | 527466de7509f457ae5f6c892713f235 | function [chansel, trlsel, cfg] = rejectvisual_channel(cfg, data);
% SUBFUNCTION for rejectvisual
% Copyright (C) 2006, Robert Oostenveld
%
% This file is part of FieldTrip, see http://www.ru.nl/neuroimaging/fieldtrip
% for the documentation and details.
%
% FieldTrip is free software: you can redistribute it and/... |
github | philippboehmsturm/antx-master | triangulate_seg.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/triangulate_seg.m | 2,957 | utf_8 | f0ab0107b15b5d5dfd2c08dee874cb1a | function [pnt, tri] = triangulate_seg(seg, npnt, ori);
% 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 ce... |
github | philippboehmsturm/antx-master | prepare_mesh_manual.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/prepare_mesh_manual.m | 29,475 | utf_8 | 92ba87f74299ab16b25a279092863d83 | 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 | philippboehmsturm/antx-master | nan_mean.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/nan_mean.m | 2,258 | utf_8 | 6b8f442f6a16b560230335ac6d8c97e6 | % nan_mean() - Average, not considering NaN values
%
% Usage: same as mean()
% Author: Arnaud Delorme, CNL / Salk Institute, 16 Oct 2002
%123456789012345678901234567890123456789012345678901234567890123456789012
% Copyright (C) 2001 Arnaud Delorme, Salk Institute, arno@salk.edu
%
% This program is free software; you ... |
github | philippboehmsturm/antx-master | matlabversion.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/matlabversion.m | 3,375 | utf_8 | 420300c3dc97894d63a198aa0d304dac | function [inInterval] = matlabversion(min, max)
% MATLABVERSION checks if the current matlab version is within the interval
% specified by min and max.
%
% Use, e.g., as:
% if matlabversion(7.0, 7.9)
% % do something
% end
%
% Both strings and numbers, as well as infinities, are supported, eg.:
% matlabversion(7... |
github | philippboehmsturm/antx-master | nanmean.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/nanmean.m | 2,121 | utf_8 | 7e0ebd9ca56f2cd79f89031bbccebb9a | % nanmean() - Average, not considering NaN values
%
% Usage: same as mean()
% Author: Arnaud Delorme, CNL / Salk Institute, 16 Oct 2002
%123456789012345678901234567890123456789012345678901234567890123456789012
% Copyright (C) 2001 Arnaud Delorme, Salk Institute, arno@salk.edu
%
% This program is free software; you c... |
github | philippboehmsturm/antx-master | nanvar.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/nanvar.m | 2,439 | utf_8 | 201826aeefbd74374df411fca75bb78f | % nanvar() - var, not considering NaN values
%
% Usage: same as var()
% Author: Arnaud Delorme, CNL / Salk Institute, Sept 2003
%123456789012345678901234567890123456789012345678901234567890123456789012
% Copyright (C) 2003 Arnaud Delorme, Salk Institute, arno@salk.edu
%
% This program is free software; you can redis... |
github | philippboehmsturm/antx-master | tinv.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/tinv.m | 7,634 | utf_8 | 8fe66ec125f91e1a7ac5f8d3cb2ac51a | function x = tinv(p,v);
% TINV Inverse of Student's T cumulative distribution function (cdf).
% X=TINV(P,V) returns the inverse of Student's T cdf with V degrees
% of freedom, at the values in P.
%
% The size of X is the common size of P and V. A scalar input
% functions as a constant matrix of the same s... |
github | philippboehmsturm/antx-master | prepare_timefreq_data.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/prepare_timefreq_data.m | 23,749 | utf_8 | 3ad7647541444236bdea168c9c52ffc5 | function [cfg, data] = prepare_timefreq_data(cfg, varargin);
% PREPARE_TIMEFREQ_DATA collects the overlapping data from multiple ERPs
% or ERFs according to the channel/time/freq-selection in the configuration
% and returns it with a dimord of 'repl_chan_freq_time'.
%
% Supported input data is from TIMELOCKANALYSIS, T... |
github | philippboehmsturm/antx-master | nan_std.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/nan_std.m | 2,136 | utf_8 | 52c60ccd6100ec10ad7c0acccd93c4d7 | % nan_std() - std, not considering NaN values
%
% Usage: std across the first dimension
% Author: Arnaud Delorme, CNL / Salk Institute, Sept 2003
%123456789012345678901234567890123456789012345678901234567890123456789012
% Copyright (C) 2003 Arnaud Delorme, Salk Institute, arno@salk.edu
%
% This program is free softw... |
github | philippboehmsturm/antx-master | inside_contour.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/inside_contour.m | 1,106 | utf_8 | 37d10e5d9a05c79551aac24c328e34aa | 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 c... |
github | philippboehmsturm/antx-master | smudge.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/smudge.m | 1,813 | utf_8 | 1849e7e0cc093f5c7572cfa9de7fa8c8 | function [datout, S] = smudge(datin, tri, niter)
% 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,
niter = 1;
end
for k = 1:niter
[tmp, Stmp] = do_smudge(datin, tri);
... |
github | philippboehmsturm/antx-master | butter.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/butter.m | 3,559 | utf_8 | ad82b4c04911a5ea11fd6bd2cc5fd590 | % Copyright (C) 1999 Paul Kienzle
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or
% (at your option) any later version.
%
% This program is distributed in t... |
github | philippboehmsturm/antx-master | convert_event.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/convert_event.m | 7,799 | utf_8 | 085ea530f797f7d529ce94b743fd110a | 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 | philippboehmsturm/antx-master | fdr.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/fdr.m | 1,986 | utf_8 | 31fd6bf82e890dc9f35f19d8b7e7e216 | 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.
% Copyright (C) 2005, Robert Oostenveld
%
% ... |
github | philippboehmsturm/antx-master | sensortype.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/sensortype.m | 6,228 | utf_8 | 57b1d940539a84b81ad94d5a1f07a8d7 | function [type] = sensortype(grad)
% SENSORTYPE returns a string that describes the type of sensors (EEG or MEG)
% and the manufacturer of the MEG system. The heuristic approach is to test
% the input sensor definition on a few features (like number of channels,
% number of coils, etc.) and score points for each of th... |
github | philippboehmsturm/antx-master | read_labview_dtlg.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/read_labview_dtlg.m | 5,153 | utf_8 | 2e41342bc1812c6740bf980c358c923b | 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.r... |
github | philippboehmsturm/antx-master | clusterstat.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/private/clusterstat.m | 34,032 | utf_8 | 2b7ff73fc26dcb327eb4fe0c3863fc0f | function [stat, cfg] = clusterstat(cfg, statrnd, statobs, varargin)
% SUBFUNCTION for computing cluster statistic for N-D volumetric source data
% or for channel-freq-time data
%
% This function uses
% cfg.dim
% cfg.inside (only for source data)
% cfg.tail = -1, 0, 1
% cfg.multivariate = no, yes
% cfg.ordere... |
github | philippboehmsturm/antx-master | ft_chantype.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/ft_chantype.m | 16,027 | utf_8 | 7bceb8d238631a586cda73a2d74ef6c4 | function type = ft_chantype(input, desired)
% FT_CHANTYPE determines for each channel what type it is, e.g. planar/axial gradiometer or magnetometer
%
% Use as
% type = ft_chantype(hdr)
% type = ft_chantype(sens)
% type = ft_chantype(label)
% or as
% type = ft_chantype(hdr, desired)
% type = ft_chantype(se... |
github | philippboehmsturm/antx-master | ft_read_event.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/ft_read_event.m | 61,782 | utf_8 | b0442e5476b7f5a3d4674ab9a1d61929 | function [event] = ft_read_event(filename, varargin)
% FT_READ_EVENT reads all events from an EEG/MEG dataset and returns
% them in a well defined structure. It is a wrapper around different
% EEG/MEG file importers, directly supported formats are CTF, Neuromag,
% EEP, BrainVision, Neuroscan and Neuralynx.
%
% Use as
... |
github | philippboehmsturm/antx-master | ft_read_header.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/ft_read_header.m | 61,504 | utf_8 | d1cf4542f365c1add40b70a2846ce4ec | 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 | philippboehmsturm/antx-master | ft_filetype.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/ft_filetype.m | 45,872 | utf_8 | c37debc76f5f54e82527bde5fea74be6 | 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 | philippboehmsturm/antx-master | read_mff_bin.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/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 | philippboehmsturm/antx-master | avw_img_read.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/avw_img_read.m | 29,199 | utf_8 | 95b0159897c31a2026a67ee3e54787a7 | 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 | philippboehmsturm/antx-master | read_yokogawa_event.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/read_yokogawa_event.m | 5,370 | utf_8 | 55b961f29b8780d52b938417cfb5064b | 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 | philippboehmsturm/antx-master | read_4d_hdr.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/read_4d_hdr.m | 24,610 | utf_8 | cad6b4858a59c73cbe1a5187692d794d | 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 | philippboehmsturm/antx-master | decode_nifti1.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/decode_nifti1.m | 2,915 | utf_8 | 32b6ac0b0549062ef13624ad21eb55e2 | function H = decode_nifti1(blob)
% function 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
% variable length arrays "dim" and "pixdim" are cut off to the right size, e.g., the
... |
github | philippboehmsturm/antx-master | read_edf.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/read_edf.m | 14,984 | utf_8 | fb40441970f49fe560181defe88145de | 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.
%
% Use as
% [hdr] = read_edf(filename);
% where
% filename name of the datafile... |
github | philippboehmsturm/antx-master | yokogawa2grad.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/yokogawa2grad.m | 7,091 | utf_8 | 2eb35dae79944c725b9f16079738501e | 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.
%
% See also FT_READ_HEADER, CTF2GRAD, BTI2GRAD, FIF2GRAD
% Copyright (C) 2005-2008, Robert Oostenveld
%
% This file is part of Fie... |
github | philippboehmsturm/antx-master | write_plexon_nex.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/write_plexon_nex.m | 9,540 | utf_8 | 8fa4e7bd71496152f676bff2c34faaa4 | 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 | philippboehmsturm/antx-master | ft_convert_units.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/ft_convert_units.m | 6,309 | utf_8 | 0405af834cc33a98947a95647175b8d5 | function [obj] = ft_convert_units(obj, target)
% 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 the head... |
github | philippboehmsturm/antx-master | ft_apply_montage.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/ft_apply_montage.m | 9,812 | utf_8 | c30fdecc34ab9678cc26828eea0538c1 | function [sens] = ft_apply_montage(sens, 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 sensor array. The sen... |
github | philippboehmsturm/antx-master | read_biosemi_bdf.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/read_biosemi_bdf.m | 10,860 | utf_8 | ddbde2abde4535318e1c0fb21c9218bd | 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 | philippboehmsturm/antx-master | read_ctf_ascii.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/read_ctf_ascii.m | 3,218 | utf_8 | 47e7379c0ed92058f4f1d9cca84b2030 | 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 v... |
github | philippboehmsturm/antx-master | read_mpi_dap.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/read_mpi_dap.m | 7,084 | utf_8 | 84049987cc6e97d585788c8400c1b1da | 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.ru.nl/neuroimaging/fieldtrip
% for th... |
github | philippboehmsturm/antx-master | read_neuralynx_bin.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/read_neuralynx_bin.m | 6,705 | utf_8 | a3589b0e825871f801d479e38ea63033 | 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 N... |
github | philippboehmsturm/antx-master | read_besa_avr.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/read_besa_avr.m | 3,929 | utf_8 | 9e36880bf3e6eb7d211a5dea7ce2d885 | 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 | philippboehmsturm/antx-master | read_eeglabdata.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/read_eeglabdata.m | 3,188 | utf_8 | 8feab64154efa64494ff73501c82e253 | % 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 | philippboehmsturm/antx-master | readbdf.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/readbdf.m | 3,638 | utf_8 | f5fc9fc5e8344dcc1d315c4c56c75b28 | % 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 | philippboehmsturm/antx-master | warning_once.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/warning_once.m | 3,060 | utf_8 | f046009e4f6ffe5745af9c5e527614e8 | function [ws warned] = warning_once(varargin)
%
% Use as
% warning_once(string)
% or
% warning_once(string, timeout)
% or
% warning_once(id, string, timeout)
% where timeout should be inf if you don't want to see the warning ever
% again. The default timeout value is 60 seconds.
%
% Can be used instead of the MATLAB... |
github | philippboehmsturm/antx-master | ft_hastoolbox.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/ft_hastoolbox.m | 15,262 | utf_8 | c0b501e52231cc82315936a092af6214 | 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 | philippboehmsturm/antx-master | read_plexon_nex.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/read_plexon_nex.m | 7,770 | utf_8 | ddd5e1bafbd237ca874db87ef640f25f | 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 | philippboehmsturm/antx-master | read_bti_m4d.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/read_bti_m4d.m | 5,358 | utf_8 | efc8ff42ca99052f99b09ebb86c10e54 | 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.ru.nl/neuroimaging/fieldtrip
% for the documentation and details.
%
% FieldTrip is free software: you can redistribute it an... |
github | philippboehmsturm/antx-master | read_asa.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/read_asa.m | 3,776 | utf_8 | 22d131a6d78524f6b898995dcb17b54d | 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 | philippboehmsturm/antx-master | nanmean.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/nanmean.m | 2,121 | utf_8 | 7e0ebd9ca56f2cd79f89031bbccebb9a | % nanmean() - Average, not considering NaN values
%
% Usage: same as mean()
% Author: Arnaud Delorme, CNL / Salk Institute, 16 Oct 2002
%123456789012345678901234567890123456789012345678901234567890123456789012
% Copyright (C) 2001 Arnaud Delorme, Salk Institute, arno@salk.edu
%
% This program is free software; you c... |
github | philippboehmsturm/antx-master | ft_checkdata.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/ft_checkdata.m | 58,801 | utf_8 | ebc65e88732dfae50505a780bebeb965 | 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 | philippboehmsturm/antx-master | read_yokogawa_data.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/read_yokogawa_data.m | 11,038 | utf_8 | 74c9636ae61942d31441ba41eab36d6f | 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 | philippboehmsturm/antx-master | read_biff.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/read_biff.m | 5,856 | utf_8 | 0a2dd51be5783d5f256831f0a6d9e6ae | 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 | philippboehmsturm/antx-master | read_eeglabheader.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/read_eeglabheader.m | 2,255 | utf_8 | fe4446f32b250441d57acff9ebe691a2 | % 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 | philippboehmsturm/antx-master | read_ctf_svl.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/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 | philippboehmsturm/antx-master | loadcnt.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/loadcnt.m | 22,223 | utf_8 | 5b218c963fe0c618bc663fc79c2fd844 | % loadcnt() - Load a Neuroscan continuous signal file.
%
% Usage:
% >> cnt = loadcnt(file, varargin)
%
% Inputs:
% filename - name of the file with extension
%
% Optional inputs:
% 't1' - start at time t1, default 0
% 'sample1' - start at sample1, default 0, overrides t1
% 'lddur' - duration of s... |
github | philippboehmsturm/antx-master | read_yokogawa_header.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/read_yokogawa_header.m | 8,340 | utf_8 | 32f28f1896d6e12abd4e5d44024649bf | 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 | philippboehmsturm/antx-master | encode_nifti1.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/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 | philippboehmsturm/antx-master | avw_hdr_read.m | .m | antx-master/freiburgLight/matlab/spm8/external/fieldtrip/fileio/private/avw_hdr_read.m | 16,668 | utf_8 | 48271159722bc225bff6496756cf9f5d | 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.