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 | spm_DesMtx.m | .m | antx-master/freiburgLight/matlab/spm8/spm_DesMtx.m | 32,503 | utf_8 | 3378b7ab974fe4c63802be7041a77998 | function [X,Pnames,Index,idx,jdx,kdx]=spm_DesMtx(varargin)
% Design matrix construction from factor level and covariate vectors
% FORMAT [X,Pnames] = spm_DesMtx(<FCLevels-Constraint-FCnames> list)
% FORMAT [X,Pnames,Index,idx,jdx,kdx] = spm_DesMtx(FCLevels,Constraint,FCnames)
%
% <FCLevels-Constraints-FCnames>
% ... |
github | philippboehmsturm/antx-master | fdmar_gaus.m | .m | antx-master/freiburgLight/matlab/spm8/fdmar_gaus.m | 170 | utf_8 | eac4694c452b8f98050d5ab6c0c4f1e8 | %change distribution of x to a gaussian distributed x
function Xgaus = fdmar_gaus(X)
[y,ind]=sort(X);
[y,ind2]=sort(ind);
Xgaus=norminv(ind2/(length(ind2)+1),0,1);
end |
github | philippboehmsturm/antx-master | spm_eeg_review_callbacks.m | .m | antx-master/freiburgLight/matlab/spm8/spm_eeg_review_callbacks.m | 76,822 | utf_8 | b03008689db948693909fa44381632bb | function [varargout] = spm_eeg_review_callbacks(varargin)
% Callbacks of the M/EEG Review facility
%__________________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
% Jean Daunizeau
% $Id: spm_eeg_review_callbacks.m 3646 2009-12-16 16:01:03Z jean $
... |
github | philippboehmsturm/antx-master | spm_imatrix.m | .m | antx-master/freiburgLight/matlab/spm8/spm_imatrix.m | 1,545 | utf_8 | 6bd968e6c68acf278802d6e9a58610fa | function P = spm_imatrix(M)
% returns the parameters for creating an affine transformation
% FORMAT P = spm_imatrix(M)
% M - Affine transformation matrix
% P - Parameters (see spm_matrix for definitions)
%___________________________________________________________________________
% Copyright (C) 2008 Wellcome... |
github | philippboehmsturm/antx-master | spm_affreg.m | .m | antx-master/freiburgLight/matlab/spm8/spm_affreg.m | 18,516 | utf_8 | 0861aa4a29a7aac70856750d2c0af6ff | function [M,scal] = spm_affreg(VG,VF,flags,M,scal)
% Affine registration using least squares.
% FORMAT [M,scal] = spm_affreg(VG,VF,flags,M0,scal0)
%
% VG - Vector of template volumes.
% VF - Source volume.
% flags - a structure containing various options. The fields are:
% WG - Weig... |
github | philippboehmsturm/antx-master | spm_eeg_locate_channels.m | .m | antx-master/freiburgLight/matlab/spm8/spm_eeg_locate_channels.m | 2,870 | utf_8 | 5c2b41cee32e14bd2f6b0d7565ddd0fb | function [Cel, Cind, x, y] = spm_eeg_locate_channels(D, n, interpolate_bad)
% Locate channels and generate mask for converting M/EEG data into images
% FORMAT [Cel, Cind, x, y] = spm_eeg_locate_channels(D, n, interpolate_bad)
%
% D - M/EEG object
% n - number of voxels in each direction
% in... |
github | philippboehmsturm/antx-master | spm_eeg_filter.m | .m | antx-master/freiburgLight/matlab/spm8/spm_eeg_filter.m | 6,617 | utf_8 | 38ceb423092384f9bf967a6534b6484e | function D = spm_eeg_filter(S)
% Filter M/EEG data
% FORMAT D = spm_eeg_filter(S)
%
% S - input structure (optional)
% (optional) fields of S:
% S.D - MEEG object or filename of M/EEG mat-file
% S.filter - struct with the following fields:
% type - optional filter type, can be
% ... |
github | philippboehmsturm/antx-master | savexml.m | .m | antx-master/freiburgLight/matlab/spm8/savexml.m | 5,240 | utf_8 | 575501e05a68903f8f5a2db4cb6a18e9 | function savexml(filename, varargin)
%SAVEXML Save workspace variables to disk in XML.
% SAVEXML FILENAME saves all workspace variables to the XML-file
% named FILENAME.xml. The data may be retrieved with LOADXML. if
% FILENAME has no extension, .xml is assumed.
%
% SAVE, by itself, creates the XML-file named 'ma... |
github | philippboehmsturm/antx-master | spm_bilinear.m | .m | antx-master/freiburgLight/matlab/spm8/spm_bilinear.m | 3,787 | utf_8 | 37e6b8a17a436698a9c87c2c7e5235be | function [H0,H1,H2] = spm_bilinear(A,B,C,D,x0,N,dt)
% returns global Volterra kernels for a MIMO Bilinear system
% FORMAT [H0,H1,H2] = spm_bilinear(A,B,C,D,x0,N,dt)
% A - (n x n) df(x(0),0)/dx - n states
% B - (n x n x m) d2f(x(0),0)/dxdu - m inputs
% C - (n x m) d... |
github | philippboehmsturm/antx-master | spm_powell.m | .m | antx-master/freiburgLight/matlab/spm8/spm_powell.m | 8,945 | utf_8 | 5c2706664704f8db313454deb4e1b755 | function [p,f] = spm_powell(p,xi,tolsc,func,varargin)
% Powell optimisation method
% FORMAT [p,f] = spm_powell(p,xi,tolsc,func,varargin)
% p - Starting parameter values
% xi - columns containing directions in which to begin
% searching.
% tolsc - stopping criteria
% - opt... |
github | philippboehmsturm/antx-master | spm_vol.m | .m | antx-master/freiburgLight/matlab/spm8/spm_vol.m | 4,687 | utf_8 | 2066ba9cc72b0c288e592c2871538689 | function V = spm_vol(P)
% Get header information for images.
% FORMAT V = spm_vol(P)
% P - a matrix of filenames.
% V - a vector of structures containing image volume information.
% The elements of the structures are:
% V.fname - the filename of the image.
% V.dim - the x, y and z dimensions of the volume... |
github | philippboehmsturm/antx-master | spm_eeg_epochs.m | .m | antx-master/freiburgLight/matlab/spm8/spm_eeg_epochs.m | 7,801 | utf_8 | 4fabb15c82422268deb9dca5b1a0ea6b | function D = spm_eeg_epochs(S)
% Epoching continuous M/EEG data
% FORMAT D = spm_eeg_epochs(S)
%
% S - input structure (optional)
% (optional) fields of S:
% S.D - MEEG object or filename of M/EEG mat-file with
% continuous data
% S.bc - bas... |
github | philippboehmsturm/antx-master | spm_jobman.m | .m | antx-master/freiburgLight/matlab/spm8/spm_jobman.m | 23,512 | utf_8 | 7a06348ae2c25b462641347366bddd8e | function varargout = spm_jobman(varargin)
% Main interface for SPM Batch System
% This function provides a compatibility layer between SPM and matlabbatch.
% It translates spm_jobman callbacks into matlabbatch callbacks and allows
% to edit and run SPM5 style batch jobs.
%
% FORMAT spm_jobman('initcfg')
% Initialise jo... |
github | philippboehmsturm/antx-master | spm_bms_partition.m | .m | antx-master/freiburgLight/matlab/spm8/spm_bms_partition.m | 4,648 | utf_8 | 0b0d4cfa175b9620fe86629a8490391c | function spm_bms_partition(BMS)
% Compute model partitioning for BMS
% FORMAT spm_bms_partition(BMS)
%
% Input:
% BMS structure (BMS.mat)
%
% Output:
% PPM (images) for each of the subsets defined
% xppm_subsetn.img (RFX) and ppm_subsetn.img (FFX)
%_______________________________________________________________________... |
github | philippboehmsturm/antx-master | spm_eeg_inv_vbecd_disp.m | .m | antx-master/freiburgLight/matlab/spm8/spm_eeg_inv_vbecd_disp.m | 23,018 | UNKNOWN | 5277a06e987a0014165d867f7c51bb1b | function spm_eeg_inv_vbecd_disp(action,varargin)
% Display the dipoles as obtained from VB-ECD
%
% FORMAT spm_eeg_inv_vbecd_disp('Init',D)
% Display the latest VB-ECD solution saved in the .inv{} field of the
% data structure D.
%
% FORMAT spm_eeg_inv_vbecd_disp('Init',D, ind)
% Display the ind^th .inv{} cell element, ... |
github | philippboehmsturm/antx-master | spm_eeg_definetrial.m | .m | antx-master/freiburgLight/matlab/spm8/spm_eeg_definetrial.m | 11,429 | utf_8 | 56a6ae7de86bca4e155843aa0d2f736f | function [trl, conditionlabels, S] = spm_eeg_definetrial(S)
% Definition of trials based on events
% FORMAT[trl, conditionlabels, S] = spm_eeg_definetrial(S)
% S - input structure (optional)
% (optional) fields of S:
% S.event - event struct (optional)
% S.fsample - sampling rate
% S.... |
github | philippboehmsturm/antx-master | spm_mvb_cvk2.m | .m | antx-master/freiburgLight/matlab/spm8/spm_mvb_cvk2.m | 5,093 | utf_8 | 751f7db1cea711d16bdb424252c3e636 | function [p,pc,R2] = spm_mvb_cvk2(MVB,k)
% k-fold cross validation of a multivariate Bayesian model
% FORMAT [p_value,percent,R2] = spm_mvb_cvk(MVB,k)
%
% MVB - Multivariate Bayes structure
% k - k-fold cross-validation ('0' implies a leave-one-out scheme)
%
% p - p-value: under a null GLM
% percent: proportion cor... |
github | philippboehmsturm/antx-master | spm_eeg_displayECD.m | .m | antx-master/freiburgLight/matlab/spm8/spm_eeg_displayECD.m | 8,250 | utf_8 | 471c105bf4bbbec394478ff1a280b571 | function [out] = spm_eeg_displayECD(Pos,Orient,Var,Names,options)
% Plot dipole positions onto the SPM canonical mesh
% FORMAT [out] = spm_eeg_displayDipoles(Pos,Orient,Var,Names,options)
%
% IN (admissible choices):
% - Pos: a 3xndip matrix containing the positions of the dipoles in
% the canonical frame of refere... |
github | philippboehmsturm/antx-master | spm_uw_apply.m | .m | antx-master/freiburgLight/matlab/spm8/spm_uw_apply.m | 14,676 | utf_8 | 79e215c42faaa2e17fc6bae5cea47179 | function varargout = spm_uw_apply(ds,flags)
% Reslices images volume by volume
% FORMAT spm_uw_apply(ds,[flags])
% or
% FORMAT P = spm_uw_apply(ds,[flags])
%
%
% ds - a structure created by spm_uw_estimate.m containing the fields:
% ds can also be an array of structures, each struct corr... |
github | philippboehmsturm/antx-master | fdmar_plot.m | .m | antx-master/freiburgLight/matlab/spm8/fdmar_plot.m | 1,420 | utf_8 | f58baff924f45e85e7434436c7d8bf48 | %need:
%obj.X --> data
%obj.res --> residuals from glm
%obj.resgaus --> gaussian distrubuted res
%obj.stimu --> stimu of the experiment
%obj.resar --> residuals of the ar fit
%obj.arspek --> theoretical spektrum build by parameter vector A
function fdmar_plot(obj,figname)
scrsz = get(0,'ScreenSize');
h=figure('Name','... |
github | philippboehmsturm/antx-master | spm_eeg_prep_ui.m | .m | antx-master/freiburgLight/matlab/spm8/spm_eeg_prep_ui.m | 29,442 | utf_8 | 80bb3efbe6195079a20c2e95d5a38104 | function spm_eeg_prep_ui(callback)
% User interface for spm_eeg_prep function performing several tasks
% for preparation of converted MEEG data for further analysis
% FORMAT spm_eeg_prep_ui(callback)
%__________________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre f... |
github | philippboehmsturm/antx-master | spm_read_netcdf.m | .m | antx-master/freiburgLight/matlab/spm8/spm_read_netcdf.m | 4,350 | utf_8 | 1cd1b0f7f4b4349d963028c168cd4f2d | function cdf = spm_read_netcdf(fname)
% Read the header information from a NetCDF file into a data structure.
% FORMAT cdf = spm_read_netcdf(fname)
% fname - name of NetCDF file
% cdf - data structure
%
% See: http://www.unidata.ucar.edu/packages/netcdf/
% _____________________________________________________________... |
github | philippboehmsturm/antx-master | spm_figure.m | .m | antx-master/freiburgLight/matlab/spm8/spm_figure.m | 38,735 | utf_8 | ec6276bcd9442a37949e30e810130c25 | function varargout=spm_figure(varargin)
% Setup and callback functions for Graphics window
% FORMAT varargout=spm_figure(varargin)
%
% spm_figure provides utility routines for using the SPM Graphics
% interface. Most used syntaxes are listed here, see the embedded callback
% reference in the main body of this function... |
github | philippboehmsturm/antx-master | spm_P_RF.m | .m | antx-master/freiburgLight/matlab/spm8/spm_P_RF.m | 6,258 | utf_8 | 12cabbf3a8ca0c5e43a3fd4025db3e69 | function [P,p,Ec,Ek] = spm_P_RF(c,k,Z,df,STAT,R,n)
% Returns the [un]corrected P value using unifed EC theory
% FORMAT [P p Ec Ek] = spm_P_RF(c,k,z,df,STAT,R,n)
%
% c - cluster number
% k - extent {RESELS}
% z - height {minimum over n values}
% df - [df{interest} df{error}]
% STAT - Statistical field
%... |
github | philippboehmsturm/antx-master | spm_dicom_headers.m | .m | antx-master/freiburgLight/matlab/spm8/spm_dicom_headers.m | 20,594 | utf_8 | 1383d5701aed00742ecf464bb28923b6 | function hdr = spm_dicom_headers(P, essentials)
% Read header information from DICOM files
% FORMAT hdr = spm_dicom_headers(P [,essentials])
% P - array of filenames
% essentials - if true, then only save the essential parts of the header
% hdr - cell array of headers, one element for each file.
%
% Contents of heade... |
github | philippboehmsturm/antx-master | spm_eeg_inv_mesh_spherify.m | .m | antx-master/freiburgLight/matlab/spm8/spm_eeg_inv_mesh_spherify.m | 5,338 | utf_8 | 95d0130b96a9bec003e301440cfd4caa | function [pnt, tri] = spm_eeg_inv_mesh_spherify(pnt, tri, varargin)
% Takes a cortical mesh and scales it so that it fits into a
% unit sphere.
%
% This function determines the points of the original mesh that support a
% convex hull and determines the radius of those points. Subsequently the
% radius of the support po... |
github | philippboehmsturm/antx-master | spm_image.m | .m | antx-master/freiburgLight/matlab/spm8/spm_image.m | 20,716 | utf_8 | 6a45267c81435eab6cb3c47db120f88d | function spm_image(action,varargin)
% Image and header display
% FORMAT spm_image
%__________________________________________________________________________
%
% spm_image is an interactive facility that allows orthogonal sections
% from an image volume to be displayed. Clicking the cursor on either
% of the three ima... |
github | philippboehmsturm/antx-master | spm_eeg_montage_ui.m | .m | antx-master/freiburgLight/matlab/spm8/spm_eeg_montage_ui.m | 7,209 | utf_8 | 81b00840683562c05ad7e333633cbfb5 | function montage = spm_eeg_montage_ui(montage)
% GUI for EEG montage (rereference EEG data to new reference channel(s))
% FORMAT montage = spm_eeg_montage_ui(montage)
%
% montage - structure with fields:
% tra - MxN matrix
% labelnew - Mx1 cell-array - new labels
% labelorg - Nx1 cell-array - original... |
github | philippboehmsturm/antx-master | spm_interp.m | .m | antx-master/freiburgLight/matlab/spm8/spm_interp.m | 1,111 | utf_8 | 5f0170891b0600c4824810d278725d9f | function [x] = spm_interp(x,r)
% 1 or 2-D array interpolation
% FORMAT [x] = spm_interp(x,r)
% x - array
% r - interpolation rate
%__________________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
% Karl Friston
% $Id: spm_interp.m 3733 2010-02-18 17... |
github | philippboehmsturm/antx-master | spm_transverse.m | .m | antx-master/freiburgLight/matlab/spm8/spm_transverse.m | 15,678 | utf_8 | 22c28b8cda464e1764eee552402294ab | function spm_transverse(varargin)
% Rendering of regional effects [SPM{T/F}] on transverse sections
% FORMAT spm_transverse('set',SPM,hReg)
% FORMAT spm_transverse('setcoords',xyzmm)
% FORMAT spm_transverse('clear')
%
% SPM - structure containing SPM, distribution & filtering details
% about the excursion s... |
github | philippboehmsturm/antx-master | spm_eeg_prep.m | .m | antx-master/freiburgLight/matlab/spm8/spm_eeg_prep.m | 17,544 | utf_8 | b98c008aeb790380204751207d3eafec | function D = spm_eeg_prep(S)
% Prepare converted M/EEG data for further analysis
% FORMAT D = spm_eeg_prep(S)
% S - configuration structure (optional)
% (optional) fields of S:
% S.D - MEEG object or filename of M/EEG mat-file
% S.task - action string. One of 'settype', 'default... |
github | philippboehmsturm/antx-master | spm_bias_ui.m | .m | antx-master/freiburgLight/matlab/spm8/spm_bias_ui.m | 5,624 | utf_8 | bf36e864bf3d49ba97e9bc133ecb84c2 | function spm_bias_ui(P)
% Non-uniformity correct images.
%
% The objective function is related to minimising the entropy of
% the image histogram, but is modified slightly.
% This fixes the problem with the SPM99 non-uniformity correction
% algorithm, which tends to try to reduce the image intensities. As
% the field w... |
github | philippboehmsturm/antx-master | fdmar_init.m | .m | antx-master/freiburgLight/matlab/spm8/fdmar_init.m | 368 | utf_8 | 97dc3cc885f39aad9e6912e28093ba94 | %A -> Parameter Matrix of arfit_coeff()
%X -> filtered data
%res -> residuals of the glm-analysis (first pass of spm_spm)
%stimu -> stiumuli from the experiment
function obj = fdmar_init(A,X,res,stimu)
obj.order = length(A);
obj.coeff = A;
obj.X = X;
obj.res = res;
obj.stimu = stimu;
obj.resgaus=fdmar_gaus(res);
obj... |
github | philippboehmsturm/antx-master | spm_mesh_render.m | .m | antx-master/freiburgLight/matlab/spm8/spm_mesh_render.m | 26,450 | utf_8 | 2a52d696ff0df1dbd3e2cf641187b0be | function varargout = spm_mesh_render(action,varargin)
% Display a surface mesh & various utilities
% FORMAT H = spm_mesh_render('Disp',M,'PropertyName',propertyvalue)
% M - a GIfTI filename/object or patch structure
% H - structure containing handles of various objects
% Opens a new figure unless a 'paren... |
github | philippboehmsturm/antx-master | spm_smooth.m | .m | antx-master/freiburgLight/matlab/spm8/spm_smooth.m | 3,746 | utf_8 | 641f9055c7e9c0b87c38737330881a53 | function spm_smooth(P,Q,s,dtype)
% 3 dimensional convolution of an image
% FORMAT spm_smooth(P,Q,S,dtype)
% P - image to be smoothed (or 3D array)
% Q - filename for smoothed image (or 3D array)
% S - [sx sy sz] Gaussian filter width {FWHM} in mm (or edges)
% dtype - datatype [default: 0 == same datatype as... |
github | philippboehmsturm/antx-master | spm_eeg_inv_imag_api.m | .m | antx-master/freiburgLight/matlab/spm8/spm_eeg_inv_imag_api.m | 15,840 | utf_8 | 169f5a7cb18e2a5ae436135b1c16203c | function varargout = spm_eeg_inv_imag_api(varargin)
% API for EEG/MEG source reconstruction interface
% FORMAT:
% FIG = SPM_EEG_INV_IMAG_API launch spm_eeg_inv_imag_api GUI.
% SPM_EEG_INV_IMAG_API('callback_name', ...) invoke the named callback.
%___________________________________________________________________... |
github | philippboehmsturm/antx-master | spm_smoothto8bit.m | .m | antx-master/freiburgLight/matlab/spm8/spm_smoothto8bit.m | 2,427 | utf_8 | d81ad311f697d9c9ad9899bd8115c3ce | function VO = spm_smoothto8bit(V,fwhm)
% 3 dimensional convolution of an image to 8bit data in memory
% FORMAT VO = spm_smoothto8bit(V,fwhm)
% V - mapped image to be smoothed
% fwhm - FWHM of Guassian filter width in mm
% VO - smoothed volume in a form that can be used by the
% spm_*_vol.mex* functions.... |
github | philippboehmsturm/antx-master | spm_eeg_review_switchDisplay.m | .m | antx-master/freiburgLight/matlab/spm8/spm_eeg_review_switchDisplay.m | 26,701 | utf_8 | a75c0568a1bf5e7efc01a71adf3e3e20 | function [D] = spm_eeg_review_switchDisplay(D)
% Switch between displays in the M/EEG Review facility
%__________________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
% Jean Daunizeau
% $Id: spm_eeg_review_switchDisplay.m 4136 2010-12-09 22:22:28Z ... |
github | philippboehmsturm/antx-master | spm_dcm_bma_results.m | .m | antx-master/freiburgLight/matlab/spm8/spm_dcm_bma_results.m | 10,252 | utf_8 | 17ac38a624a58cb94d8b565b24ce5ff4 | function spm_dcm_bma_results(BMS,method)
% Plot histograms from BMA for selected modulatory and driving input
% FORMAT spm_dcm_bma_results(BMS,mod_in,drive_in,method)
%
% Input:
% BMS - BMS.mat file
% method - inference method (FFX or RFX)
%____________________________________________________________________... |
github | philippboehmsturm/antx-master | spm_check_filename.m | .m | antx-master/freiburgLight/matlab/spm8/spm_check_filename.m | 2,311 | utf_8 | b8de0a161ecbb9d70247bbf51873bb0e | function V = spm_check_filename(V)
% Checks paths are valid and tries to restore path names
% FORMAT V = spm_check_filename(V)
%
% V - struct array of file handles
%__________________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
% Karl Friston
% $I... |
github | philippboehmsturm/antx-master | spm_defs.m | .m | antx-master/freiburgLight/matlab/spm8/spm_defs.m | 11,688 | utf_8 | 217cf06b73a160542c57789ec5490b4f | function out = spm_defs(job)
% Various deformation field utilities.
% FORMAT out = spm_defs(job)
% job - a job created via spm_config_defs.m and spm_jobman.m
% out - a struct with fields
% .def - file name of created deformation field
% .warped - file names of warped images
%
% See spm_config_defs.m for ... |
github | philippboehmsturm/antx-master | spm_sp.m | .m | antx-master/freiburgLight/matlab/spm8/spm_sp.m | 39,708 | utf_8 | 180830974ed2715dc2f976a356081a60 | function varargout = spm_sp(varargin)
% Orthogonal (design) matrix space setting & manipulation
% FORMAT varargout = spm_spc(action,varargin)
%
% This function computes the different projectors related to the row
% and column spaces X. It should be used to avoid redundant computation
% of svd on large X matrix. It is ... |
github | philippboehmsturm/antx-master | spm_dicom_essentials.m | .m | antx-master/freiburgLight/matlab/spm8/spm_dicom_essentials.m | 3,313 | utf_8 | eaddd814bd4e7aa9c9fa338cb76f42fc | function hdr1 = spm_dicom_essentials(hdr0)
% Remove unused fields from DICOM header
% FORMAT hdr1 = spm_dicom_essentials(hdr0)
% hdr0 - original DICOM header
% hdr1 - Stripped down DICOM header.
%
% With lots of DICOM files, the size of all the headers can become too
% big for all the fields to be saved. The idea here... |
github | philippboehmsturm/antx-master | spm_ecat2nifti.m | .m | antx-master/freiburgLight/matlab/spm8/spm_ecat2nifti.m | 16,572 | utf_8 | 753e9a7e6e367abce74e0a0c4878f6c5 | function N = spm_ecat2nifti(fname,opts)
% Import ECAT 7 images from CTI PET scanners.
% FORMAT N = spm_ecat2nifti(fname)
% fname - name of ECAT file
% _______________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
% John Ashburner & Roger Gunn
%... |
github | philippboehmsturm/antx-master | spm_platform.m | .m | antx-master/freiburgLight/matlab/spm8/spm_platform.m | 8,916 | utf_8 | 1ead463af23059fb998f62b124a12a6d | function varargout=spm_platform(varargin)
% Platform specific configuration parameters for SPM
%
% FORMAT ans = spm_platform(arg)
% arg - optional string argument, can be
% - 'bigend' - return whether this architecture is bigendian
% - 0 - is little endian
% - 1 - ... |
github | philippboehmsturm/antx-master | spm_vb_graphcut.m | .m | antx-master/freiburgLight/matlab/spm8/spm_vb_graphcut.m | 6,187 | utf_8 | e66c1e4a9a6d484998db51df14cba084 | function labels = spm_vb_graphcut(labels,index,I,W,depth,grnd_type,CUTOFF,DIM)
% Recursive bi-partition of a graph using the isoperimetric algorithm
%
% FORMAT labels = spm_vb_graphcut(labels,index,I,W,depth,grnd_type,CUTOFF,DIM)
%
% labels each voxel is lableled depending on whihc segment is belongs
% index ... |
github | philippboehmsturm/antx-master | spm_preproc.m | .m | antx-master/freiburgLight/matlab/spm8/spm_preproc.m | 20,562 | utf_8 | 4fb344b9d6037ec12448af8a5f36eaff | function results = spm_preproc(varargin)
% Combined Segmentation and Spatial Normalisation
%
% FORMAT results = spm_preproc(V,opts)
% V - image to work with
% opts - options
% opts.tpm - n tissue probability images for each class
% opts.ngaus - number of Gaussians per class (n+1 classes)
% opts.warpreg ... |
github | philippboehmsturm/antx-master | spm_preproc_write.m | .m | antx-master/freiburgLight/matlab/spm8/spm_preproc_write.m | 8,906 | utf_8 | 6313e4e753e749911aac1143ba425149 | function spm_preproc_write(p,opts)
% Write out VBM preprocessed data
% FORMAT spm_preproc_write(p,opts)
% p - results from spm_prep2sn
% opts - writing options. A struct containing these fields:
% biascor - write bias corrected image
% GM - flags for which images should be written
% WM ... |
github | philippboehmsturm/antx-master | spm_robust_glm.m | .m | antx-master/freiburgLight/matlab/spm8/spm_robust_glm.m | 3,455 | utf_8 | bcb212d68b21aa060a764bdf025894e1 | function [B, W] = spm_robust_glm(Y, X, dim, ks)
% Apply robust GLM
% FORMAT [B, W] = spm_robust_glm(Y, X, dim, ks)
% Y - data matrix
% X - design matrix
% dim - the dimension along which the function will work
% ks - offset of the weighting function (default: 3)
%
% OUTPUT:
% B - parameter estimat... |
github | philippboehmsturm/antx-master | spm_inv_spd.m | .m | antx-master/freiburgLight/matlab/spm8/spm_inv_spd.m | 2,156 | utf_8 | cd4bba226b2f3ecf23302491c65f9bfe | function X = spm_inv_spd(A, TOL)
% inverse for symmetric positive (semi)definite matrices
% FORMAT X = spm_inv_spd(A,TOL)
%
% A - symmetric positive definite matrix (e.g. covariance or precision)
% X - inverse (should remain symmetric positive definite)
%
% TOL - tolerance: default = exp(-32)
%_____________________... |
github | philippboehmsturm/antx-master | spm.m | .m | antx-master/freiburgLight/matlab/spm8/spm.m | 48,527 | utf_8 | 2bc361410222c891200e28d5b187502d | function varargout=spm(varargin)
% SPM: Statistical Parametric Mapping (startup function)
%_______________________________________________________________________
% ___ ____ __ __
% / __)( _ \( \/ )
% \__ \ )___/ ) ( Statistical Parametric Mapping
% (___/(__) (_/\/\_) SPM - http://www.fil.ion.ucl.ac.uk/... |
github | philippboehmsturm/antx-master | spm_orthviews.m | .m | antx-master/freiburgLight/matlab/spm8/spm_orthviews.m | 84,652 | utf_8 | 27f3fe78186242409fcb89b828ddb4f4 | function varargout = spm_orthviews(action,varargin)
% Display orthogonal views of a set of images
% FORMAT H = spm_orthviews('Image',filename[,position])
% filename - name of image to display
% area - position of image {relative}
% - area(1) - position x
% - area(2) - position y
% ... |
github | philippboehmsturm/antx-master | spm_FcUtil.m | .m | antx-master/freiburgLight/matlab/spm8/spm_FcUtil.m | 30,975 | utf_8 | 0d64cc7e875dbb54242a27a69ebaee99 | function varargout = spm_FcUtil(varargin)
% Contrast utilities
% FORMAT varargout = spm_FcUtil(action,varargin)
%_______________________________________________________________________
%
% spm_FcUtil is a multi-function function containing various utilities
% for contrast construction and manipulation. In general, it a... |
github | philippboehmsturm/antx-master | spm_read_hdr.m | .m | antx-master/freiburgLight/matlab/spm8/spm_read_hdr.m | 5,627 | utf_8 | 785bdd356119ce704a546f3774cd819e | function [hdr,otherendian] = spm_read_hdr(fname)
% Read (SPM customised) Analyze header
% FORMAT [hdr,otherendian] = spm_read_hdr(fname)
% fname - .hdr filename
% hdr - structure containing Analyze header
% otherendian - byte swapping necessary flag
%_______________________________________________________... |
github | philippboehmsturm/antx-master | spm_eeg_inv_visu3D_api.m | .m | antx-master/freiburgLight/matlab/spm8/spm_eeg_inv_visu3D_api.m | 28,460 | utf_8 | 31ed5e0329581a73574a4b7986a89440 | function varargout = spm_eeg_inv_visu3D_api(varargin)
% SPM_EEG_INV_VISU3D_API M-file for spm_eeg_inv_visu3D_api.fig
% - FIG = SPM_EEG_INV_VISU3D_API launch spm_eeg_inv_visu3D_api GUI.
% - D = SPM_EEG_INV_VISU3D_API(D) open with D
% - SPM_EEG_INV_VISU3D_API(filename) where filename is the eeg/meg .mat file
% - SPM_EE... |
github | philippboehmsturm/antx-master | spm_load.m | .m | antx-master/freiburgLight/matlab/spm8/spm_load.m | 1,187 | utf_8 | 9e2a506bf52d19a51a627ece881f02b2 | function [x] = spm_load(f)
% function to load ascii file data as matrix
% FORMAT [x] = spm_load(f)
% f - file {ascii file containing a regular array of numbers
% x - corresponding data matrix
%_______________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroi... |
github | philippboehmsturm/antx-master | spm_reslice.m | .m | antx-master/freiburgLight/matlab/spm8/spm_reslice.m | 13,297 | utf_8 | 831352bc3482e5f11321a4d86aac663d | function spm_reslice(P,flags)
% Rigid body reslicing of images
% FORMAT spm_reslice(P,flags)
%
% P - matrix or cell array of filenames {one string per row}
% All operations are performed relative to the first image.
% ie. Coregistration is to the first image, and resampling
% of images i... |
github | philippboehmsturm/antx-master | spm_render.m | .m | antx-master/freiburgLight/matlab/spm8/spm_render.m | 13,829 | utf_8 | 9e4e98950ae8331e22d6f4e4d22c6d0c | function spm_render(dat,brt,rendfile)
% Render blobs on surface of a 'standard' brain
% FORMAT spm_render(dat,brt,rendfile)
%
% dat - a struct array of length 1 to 3
% each element is a structure containing:
% - XYZ - the x, y & z coordinates of the transformed SPM{.}
% val... |
github | philippboehmsturm/antx-master | spm_uitable.m | .m | antx-master/freiburgLight/matlab/spm8/spm_uitable.m | 11,862 | utf_8 | 43cfc4fe369c00f401fbbe0fdf7bc5e8 | function [varargout] = spm_uitable(varargin)
% WARNING: This feature is not supported in MATLAB
% and the API and functionality may change in a future release.
% UITABLE creates a two dimensional graphic uitable component in a figure window.
% UITABLE creates a 1x1 uitable object using default property values in
%... |
github | philippboehmsturm/antx-master | spm_eeg_convert.m | .m | antx-master/freiburgLight/matlab/spm8/spm_eeg_convert.m | 16,945 | utf_8 | a71c71902f215e5d6bfa54b043e525d8 | function D = spm_eeg_convert(S)
% Main function for converting different M/EEG formats to SPM8 format.
% FORMAT D = spm_eeg_convert(S)
% S - can be string (file name) or struct (see below)
%
% If S is a struct it can have the optional following fields:
% S.dataset - file name
% S.continuous - ... |
github | philippboehmsturm/antx-master | spm_maff.m | .m | antx-master/freiburgLight/matlab/spm8/spm_maff.m | 8,022 | utf_8 | 33d6a7e3d4b7305bf9bd04c4ffb4eef5 | function M = spm_maff(varargin)
% Affine registration to MNI space using mutual information
% FORMAT M = spm_maff(P,samp,x,b0,MF,M,regtyp,ff)
% P - filename or structure handle of image
% x - cell array of {x1,x2,x3}, where x1 and x2 are
% co-ordinates (from ndgrid), and x3 is a list of
% ... |
github | philippboehmsturm/antx-master | spm_diff.m | .m | antx-master/freiburgLight/matlab/spm8/spm_diff.m | 4,795 | utf_8 | ad03f0b9baf443336e6690d292b28a58 | function [varargout] = spm_diff(varargin)
% matrix high-order numerical differentiation
% FORMAT [dfdx] = spm_diff(f,x,...,n)
% FORMAT [dfdx] = spm_diff(f,x,...,n,V)
% FORMAT [dfdx] = spm_diff(f,x,...,n,'q')
%
% f - [inline] function f(x{1},...)
% x - input argument[s]
% n - arguments to differentiate w.... |
github | philippboehmsturm/antx-master | spm_DisplayTimeSeries.m | .m | antx-master/freiburgLight/matlab/spm8/spm_DisplayTimeSeries.m | 14,298 | utf_8 | 1c167bc991f31018469bbdda0f340261 | function [ud] = spm_DisplayTimeSeries(y,options)
% This function builds a GUI for 'smart' time series display.
% FORMAT function [ud] = spm_DisplayTimeSeries(y,options)
% IN:
% - y: the txn data, where t is the number of time sample, and p the
% number of 'channels'
% - options: a structure (default is empty), wh... |
github | philippboehmsturm/antx-master | loadxml.m | .m | antx-master/freiburgLight/matlab/spm8/loadxml.m | 4,985 | utf_8 | 9429ec4334b8abc0ff9910e7c9019fdc | function varargout = loadxml(filename,varargin)
%LOADXML Load workspace variables from disk (XML file).
% LOADXML FILENAME retrieves all variables from a file given a full
% pathname or a MATLABPATH relative partial pathname (see PARTIALPATH).
% If FILENAME has no extension LOAD looks for FILENAME and FILENAME.xml ... |
github | philippboehmsturm/antx-master | spm_robust_average.m | .m | antx-master/freiburgLight/matlab/spm8/spm_robust_average.m | 3,192 | utf_8 | d08041bc129e6fc7d0393de75bb74414 | function [Y,W] = spm_robust_average(X, dim, ks)
% Apply robust averaging routine to X sets
% FORMAT [Y,W] = spm_robust_averaget(X, dim, ks)
% X - data matrix to be averaged
% dim - the dimension along which the function will work
% ks - offset of the weighting function (default: 3)
%
% W - estimated we... |
github | philippboehmsturm/antx-master | spm_BMS_F_smpl.m | .m | antx-master/freiburgLight/matlab/spm8/spm_BMS_F_smpl.m | 1,628 | utf_8 | ee07ac8baecef03c27abc7bbde7c2ebe | function [s_samp,s_bound] = spm_BMS_F_smpl (alpha,lme,alpha0)
% Get sample and lower bound approx. for model evidence p(y|r)
% in group BMS; see spm_BMS_F.
%
% FORMAT [s_samp,s_bound] = spm_BMS_F_smpl (alpha,lme,alpha0)
%
% REFERENCE: See appendix in
% Stephan KE, Penny WD, Daunizeau J, Moran RJ, Friston KJ
% Bayesia... |
github | philippboehmsturm/antx-master | spm_normalise.m | .m | antx-master/freiburgLight/matlab/spm8/spm_normalise.m | 12,919 | utf_8 | 716d6de42742658332dc1d1712f9738f | function params = spm_normalise(VG,VF,matname,VWG,VWF,flags)
% Spatial (stereotactic) normalisation
%
% FORMAT params = spm_normalise(VG,VF,matname,VWG,VWF,flags)
% VG - template handle(s)
% VF - handle of image to estimate params from
% matname - name of file to store deformation definitions
% VWG ... |
github | philippboehmsturm/antx-master | spm_eeg_ft2spm.m | .m | antx-master/freiburgLight/matlab/spm8/spm_eeg_ft2spm.m | 6,129 | utf_8 | a5369fdb03fab87d6f33d7a88c8bbac1 | function D = spm_eeg_ft2spm(ftdata, filename)
% Converter from Fieldtrip (http://www.ru.nl/fcdonders/fieldtrip/)
% data structures to SPM8 file format
%_______________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
% Vladimir Litvak
% $Id: spm_eeg_ft... |
github | philippboehmsturm/antx-master | spm_spike_fix.m | .m | antx-master/freiburgLight/matlab/spm8/spm_spike_fix.m | 4,022 | utf_8 | cd3493fe3f024b723204183667a038ae | function [Mean_result, Std_result] = spm_spike_fix(correct);
% function [Mean_result, Std_result] = spm_spike_fix(correct);
% If correct = 1 whole volumes will be corrected
% If correct = 0 the routine reports suspicious slices only
% Report 0th and 1st order moments of scans (slice by slice)
% Uses raw data and finit... |
github | philippboehmsturm/antx-master | spm_pf.m | .m | antx-master/freiburgLight/matlab/spm8/spm_pf.m | 6,768 | utf_8 | 7a122bb3a5c25e63f4470b6ba52cdb54 | function [qx,qP,qD,xhist] = spm_pf(M,y,U)
% Particle Filtering for dynamic models
% FORMAT [qx,qP,qD,xhist] = spm_pf(M,y)
% M - model specification structure
% y - output or data (N x T)
% U - exogenous input
%
% M(1).x % initial states
% M(1).f = inline(f,'x','v','P') % state equation
% M... |
github | philippboehmsturm/antx-master | spm_SpUtil.m | .m | antx-master/freiburgLight/matlab/spm8/spm_SpUtil.m | 27,031 | utf_8 | 52ecc1ec2086a8b82b6e6192fd8f435a | function varargout = spm_SpUtil(varargin)
% Space matrix utilities
% FORMAT varargout = spm_SpUtil(action,varargin)
%
%_______________________________________________________________________
%
% spm_SpUtil is a multi-function function containing various utilities
% for Design matrix and contrast construction and manipu... |
github | philippboehmsturm/antx-master | fdmar_arspekth.m | .m | antx-master/freiburgLight/matlab/spm8/fdmar_arspekth.m | 310 | utf_8 | 0272c17a23072d4921ba797cc40a4a69 | %calulate theoretical ar spectrum out of estimated ar Parameters obj.A
function obj = fdmar_arspekth(obj)
A = obj.coeff;
obj.arspek = [];
for f = 1:1000
sum=0;
for p = 1:length(A)
sum = sum + A(p) * exp(-2*sqrt(-1)*pi*p*f/2000);
end
obj.arspek(f+1) = (abs(1-sum))^(-2);
end
end
|
github | philippboehmsturm/antx-master | spm_dicom_convert.m | .m | antx-master/freiburgLight/matlab/spm8/spm_dicom_convert.m | 48,384 | utf_8 | e3f0d186803281f4c8494bb08b7965c8 | function out = spm_dicom_convert(hdr,opts,root_dir,format)
% Convert DICOM images into something that SPM can use
% FORMAT spm_dicom_convert(hdr,opts,root_dir,format)
% Inputs:
% hdr - a cell array of DICOM headers from spm_dicom_headers
% opts - options
% 'all' - all DICOM files [default]
% 'mosaic... |
github | philippboehmsturm/antx-master | spm_spm_ui.m | .m | antx-master/freiburgLight/matlab/spm8/spm_spm_ui.m | 98,074 | utf_8 | dfdd679af4a4b15272726dcb46e888fe | function varargout = spm_spm_ui(varargin)
% Setting up the general linear model for independent data
% FORMATs (given in Programmers Help)
%_______________________________________________________________________
%
% spm_spm_ui.m configures the design matrix (describing the general
% linear model), data specification, a... |
github | philippboehmsturm/antx-master | spm_minmax.m | .m | antx-master/freiburgLight/matlab/spm8/spm_minmax.m | 3,751 | utf_8 | 1a7267151fb6239e66dbd59584c49bea | function [mnv,mxv] = spm_minmax(g)
% Compute a suitable range of intensities for VBM preprocessing stuff
% FORMAT [mnv,mxv] = spm_minmax(g)
% g - array of data
% mnv - minimum value
% mxv - maximum value
%
% A MOG with two Gaussians is fitted to the intensities. The lower
% Gaussian is assumed to represent backgr... |
github | philippboehmsturm/antx-master | spm_create_vol.m | .m | antx-master/freiburgLight/matlab/spm8/spm_create_vol.m | 4,967 | utf_8 | 7a051f745805c44e02ffd7b190e4a2c8 | function V = spm_create_vol(V,varargin)
% Create a volume
% FORMAT V = spm_create_vol(V)
% V - image volume information (see spm_vol.m)
%____________________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
% John Ashburner
% $Id: spm_create_vol.m 1169... |
github | philippboehmsturm/antx-master | spm_check_results.m | .m | antx-master/freiburgLight/matlab/spm8/spm_check_results.m | 2,501 | utf_8 | a9b2a3fb54c8c128a16928e69bb03bb4 | function spm_check_results(SPMs,xSPM)
% Display several MIPs in the same figure
% FORMAT spm_check_results(SPMs,xSPM)
% SPMs - char or cell array of paths to SPM.mat[s]
% xSPM - structure containing thresholding details, see spm_getSPM.m
%
% Beware: syntax and features of this function are likely to change.
%____... |
github | philippboehmsturm/antx-master | spm_get_bf.m | .m | antx-master/freiburgLight/matlab/spm8/spm_get_bf.m | 5,655 | utf_8 | 4a302f12929f57bbbe0fc6127fdd7bba | function [xBF] = spm_get_bf(xBF)
% fills in basis function structure
% FORMAT [xBF] = spm_get_bf(xBF);
%
% xBF.dt - time bin length {seconds}
% xBF.name - description of basis functions specified
% xBF.length - window length (seconds)
% xBF.order - order
% xBF.bf - Matrix of basis functions
%
% xBF.name... |
github | philippboehmsturm/antx-master | spm_eeval.m | .m | antx-master/freiburgLight/matlab/spm8/spm_eeval.m | 8,442 | utf_8 | e737ca615edb620ef652dad343579121 | function [p,msg] = spm_eeval(str,Type,n,m)
% Expression evaluation
% FORMAT [p,msg] = spm_eeval(str,Type,n,m)
% Str - Expression to work with
%
% Type - type of evaluation
% - 's'tring
% - 'e'valuated string
% - 'n'atural numbers
% - 'w'hole numbers
% - 'i'ntegers
% - 'r'e... |
github | philippboehmsturm/antx-master | spm_check_installation.m | .m | antx-master/freiburgLight/matlab/spm8/spm_check_installation.m | 19,093 | utf_8 | 3cea4700180f0be4b49eb61716cb7766 | function spm_check_installation(action)
% Check SPM installation
% FORMAT spm_check_installation('basic')
% Perform a superficial check of SPM installation [default].
%
% FORMAT spm_check_installation('full')
% Perform an in-depth diagnostic of SPM installation.
%
% FORMAT spm_check_installation('build')
% Build signat... |
github | philippboehmsturm/antx-master | spm_eeg_history.m | .m | antx-master/freiburgLight/matlab/spm8/spm_eeg_history.m | 7,054 | utf_8 | ca9562d1d594dab469afda051dd279a3 | function H = spm_eeg_history(S)
% Generate a MATLAB script from the history of an M/EEG SPM data file
% FORMAT H = spm_eeg_history(S)
%
% S - filename or input struct (optional)
% (optional) fields of S:
% history - history of M/EEG object (D.history)
% sname - filename of the to be generated MATLAB ... |
github | philippboehmsturm/antx-master | spm_bias_estimate.m | .m | antx-master/freiburgLight/matlab/spm8/spm_bias_estimate.m | 6,564 | utf_8 | d82c2ea740642ae1ced08ecfe885e4f2 | function T = spm_bias_estimate(V,flags)
% Estimate image nonuniformity.
%
% FORMAT T = spm_bias_estimate(V,flags)
% V - filename or vol struct of image
% flags - a structure containing the following fields
% nbins - number of bins in histogram (1024)
% reg - amount of regularisation (1)
% cutoff... |
github | philippboehmsturm/antx-master | spm_results_ui.m | .m | antx-master/freiburgLight/matlab/spm8/spm_results_ui.m | 55,541 | utf_8 | b525e0d6866bf56cad0ab1f87892ab07 | function varargout = spm_results_ui(varargin)
% User interface for SPM/PPM results: Display and analysis of regional effects
% FORMAT [hReg,xSPM,SPM] = spm_results_ui('Setup',[xSPM])
%
% hReg - handle of MIP XYZ registry object
% (see spm_XYZreg.m for details)
% xSPM - structure containing specific SPM, di... |
github | philippboehmsturm/antx-master | spm_eeg_downsample.m | .m | antx-master/freiburgLight/matlab/spm8/spm_eeg_downsample.m | 6,776 | utf_8 | 2acedd25acf7d367a7d5e7d1d011cba8 | function D = spm_eeg_downsample(S)
% Downsample M/EEG data
% FORMAT D = spm_eeg_downsample(S)
%
% S - optional input struct
% (optional) fields of S:
% S.D - MEEG object or filename of M/EEG mat-file
% S.fsample_new - new sampling rate, must be lower than the original one
% S.prefix -... |
github | philippboehmsturm/antx-master | spm_eeg_review.m | .m | antx-master/freiburgLight/matlab/spm8/spm_eeg_review.m | 9,515 | utf_8 | 66c2b381d0f44f9286400e307a2eddae | function spm_eeg_review(D,flag,inv)
% General review (display) of SPM meeg object
% FORMAT spm_eeg_review(D,flags,inv)
%
% INPUT:
% D - meeg object
% flag - switch to any of the displays (optional)
% inv - which source reconstruction to display (when called from
% spm_eeg_inv_imag_api.m)
%____________________... |
github | philippboehmsturm/antx-master | spm_coreg.m | .m | antx-master/freiburgLight/matlab/spm8/spm_coreg.m | 15,129 | utf_8 | 1a1cb266498e19f17d20aef76c6358f0 | function x = spm_coreg(varargin)
% Between modality coregistration using information theory
% FORMAT x = spm_coreg(VG,VF,flags)
% VG - handle for reference image (see spm_vol).
% VF - handle for source (moved) image.
% flags - a structure containing the following elements:
% sep - optimisation sampl... |
github | philippboehmsturm/antx-master | spm_axis.m | .m | antx-master/freiburgLight/matlab/spm8/spm_axis.m | 650 | utf_8 | 06a3507b1acc2575b34977be7961e117 | function varargout = spm_axis(varargin)
% AXIS Control axis scaling and appearance.
if nargout
[varargout{1:nargout}] = axis(varargin{:});
else
axis(varargin{:});
end
if nargin ==1 && strcmpi(varargin{1},'tight')
spm_axis(gca,'tight');
elseif nargin == 2 && allAxes(varargin{1}) && strcmpi(varargin{2},'ti... |
github | philippboehmsturm/antx-master | spm_uw_estimate.m | .m | antx-master/freiburgLight/matlab/spm8/spm_uw_estimate.m | 33,350 | utf_8 | 640443456204e7ee34b1998cd2a57832 | function ds = spm_uw_estimate(P,par)
% Estimation of partial derivatives of EPI deformation fields.
%
% FORMAT [ds] = spm_uw_estimate((P),(par))
%
% P - List of file names or headers.
% par - Structure containing parameters governing the specifics
% of how to estimate the fields.
% .M... |
github | philippboehmsturm/antx-master | spm_eeg_inv_vbecd_gui.m | .m | antx-master/freiburgLight/matlab/spm8/spm_eeg_inv_vbecd_gui.m | 28,153 | utf_8 | 598aea45945f5e4331f926426be3135d | function D = spm_eeg_inv_vbecd_gui(D,val)
% GUI function for Bayesian ECD inversion
% - load the necessary data, if not provided
% - fill in all the necessary bits for the VB-ECD inversion routine,
% - launch the B_ECD routine, aka. spm_eeg_inv_vbecd
% - displays the results.
%__________________________________________... |
github | philippboehmsturm/antx-master | spm_changepath.m | .m | antx-master/freiburgLight/matlab/spm8/spm_changepath.m | 3,334 | utf_8 | 131dfc27d3dc8f5c489b56126b71ee9b | function varargout = spm_changepath(Sf, oldp, newp)
% Recursively replace all occurences of a text pattern in a MATLAB variable.
% FORMAT S = spm_changepath(Sf, oldp, newp)
%
% Sf - MATLAB variable to fix, or char array of MAT filenames,
% or directory name (all found MAT files will be analysed)
% oldp... |
github | philippboehmsturm/antx-master | spm_prep2sn.m | .m | antx-master/freiburgLight/matlab/spm8/spm_prep2sn.m | 7,382 | utf_8 | 296f1080e48fcd6511bd7e6ac39b97e7 | function [po,pin] = spm_prep2sn(p)
% Convert the output from spm_preproc into an sn.mat file
% FORMAT [po,pin] = spm_prep2sn(p)
% p - the results of spm_preproc
%
% po - the output in a form that can be used by spm_write_sn
% pin - the inverse transform in a form that can be used by spm_write_sn
%
% The outputs are ... |
github | philippboehmsturm/antx-master | cfg_util.m | .m | antx-master/freiburgLight/matlab/spm8/matlabbatch/cfg_util.m | 69,531 | utf_8 | df128c0e351eaeafd4da2fdf92565e72 | function varargout = cfg_util(cmd, varargin)
% This is the command line interface to the batch system. It manages the
% following structures:
% * Generic configuration structure c0. This structure will be initialised
% to an cfg_repeat with empty .values list. Each application should
% provide an application-speci... |
github | philippboehmsturm/antx-master | cfg_load_jobs.m | .m | antx-master/freiburgLight/matlab/spm8/matlabbatch/cfg_load_jobs.m | 1,968 | utf_8 | 50811a465957ba08f347b263a555aa17 | function [newjobs uind] = cfg_load_jobs(job)
% function newjobs = cfg_load_jobs(job)
%
% Load a list of possible job files, return a cell list of jobs.
%
% This code is part of a batch job configuration system for MATLAB. See
% help matlabbatch
% for a general overview.
%_________________________________________... |
github | philippboehmsturm/antx-master | cfg_conftest.m | .m | antx-master/freiburgLight/matlab/spm8/matlabbatch/cfg_conftest.m | 10,782 | utf_8 | 46618c925dffffaffb45176a69539c3a | function sts = cfg_conftest(bch)
% sts = function cfg_conftest(bch)
% Run a set of tests for a configuration file. Details of the tests will
% be displayed in the command window.
%
% This code is part of a batch job configuration system for MATLAB. See
% help matlabbatch
% for a general overview.
%______________... |
github | philippboehmsturm/antx-master | cfg_ui.m | .m | antx-master/freiburgLight/matlab/spm8/matlabbatch/cfg_ui.m | 67,382 | utf_8 | cdcda01a2f0e51319147ec5509f43f46 | function varargout = cfg_ui(varargin)
% CFG_UI M-File for cfg_ui.fig
% CFG_UI, by itself, creates a new CFG_UI or raises the existing
% singleton*.
%
% H = CFG_UI returns the handle to a new CFG_UI or the handle to
% the existing singleton*.
%
% CFG_UI('CALLBACK',hObject,eventData,handles,...) ... |
github | philippboehmsturm/antx-master | cfg_getfile_spm12.m | .m | antx-master/freiburgLight/matlab/spm8/matlabbatch/cfg_getfile_spm12.m | 51,231 | utf_8 | 2b8227dc8614e49e7c17ac2771988a19 | function [t,sts] = cfg_getfile(varargin)
% File selector
% FORMAT [t,sts] = cfg_getfile(n,typ,mesg,sel,wd,filt,prms)
% n - Number of files
% A single value or a range. e.g.
% 1 - Select one file
% Inf - Select any number of files
% [1 Inf] - Select 1 to Inf ... |
github | philippboehmsturm/antx-master | gencode_rvalue.m | .m | antx-master/freiburgLight/matlab/spm8/matlabbatch/gencode_rvalue.m | 4,462 | utf_8 | cfb1c3661ee7542738543709ba33f245 | function [str, sts] = gencode_rvalue(item)
% GENCODE_RVALUE Code for right hand side of MATLAB assignment
% Generate the right hand side for a valid MATLAB variable
% assignment. This function is a helper to GENCODE, but can be used on
% its own to generate code for the following types of variables:
% * scalar, 1D or... |
github | philippboehmsturm/antx-master | cfg_getfile.m | .m | antx-master/freiburgLight/matlab/spm8/matlabbatch/cfg_getfile.m | 46,028 | utf_8 | 1afa899473c703ae0685662af46b54e2 | function [t,sts] = cfg_getfile(varargin)
% File selector
% FORMAT [t,sts] = cfg_getfile(n,typ,mesg,sel,wd,filt,frames)
% n - Number of files
% A single value or a range. e.g.
% 1 - Select one file
% Inf - Select any number of files
% [1 Inf] - Select 1 to In... |
github | philippboehmsturm/antx-master | cfg_struct2cfg.m | .m | antx-master/freiburgLight/matlab/spm8/matlabbatch/cfg_struct2cfg.m | 4,219 | utf_8 | 815cf9926f3675e7e3a77d9aeadf9f27 | function cc = cfg_struct2cfg(co, indent)
% Import a config structure into a matlabbatch class tree. Input structures
% are those generated from the configuration editor, cfg2struct methods or
% spm_jobman config structures.
%
% The layout of the configuration tree and the types of configuration items
% have been kept ... |
github | philippboehmsturm/antx-master | cfg_serial.m | .m | antx-master/freiburgLight/matlab/spm8/matlabbatch/cfg_serial.m | 10,087 | utf_8 | fe31bccd3086b176c75e695c95783c22 | function cfg_serial(guifcn, job, varargin)
% This function is deprecated.
% The functionality should replaced by the following sequence of calls:
%
% Instead of
% cfg_serial(guifcn, job, varargin)
% use
% cjob = cfg_util('initjob', job);
% sts = cfg_util('filljobui', cjob, guifcn, varargin);
% if sts
% cfg_util(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.