Home > marsbar > spm5 > mars_veropts.m

mars_veropts

PURPOSE ^

returns SPM version specific parameters

SYNOPSIS ^

function varargout = mars_veropts(arg, varargin)

DESCRIPTION ^

 returns SPM version specific parameters
 FORMAT varargout = mars_veropts(arg, varargin)
  
 This is the SPM 5 version

 $Id: mars_veropts.m 350 2004-08-12 06:52:18Z matthewbrett $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function varargout = mars_veropts(arg, varargin)
0002 % returns SPM version specific parameters
0003 % FORMAT varargout = mars_veropts(arg, varargin)
0004 %
0005 % This is the SPM 5 version
0006 %
0007 % $Id: mars_veropts.m 350 2004-08-12 06:52:18Z matthewbrett $
0008   
0009 if nargin < 1
0010   varargout = {};
0011   return
0012 end
0013 
0014 switch lower(arg)
0015  case 'defaults'
0016   global defaults
0017   if isempty(defaults)
0018       try
0019         % SPM8 likes to return the defaults
0020         defaults = spm('defaults','FMRI');
0021       catch
0022         % SPM5 does not
0023         spm_defaults;
0024         spm('defaults','FMRI');
0025       end
0026   end
0027   varargout = {defaults};
0028  case 'default_design'
0029   varargout = {mardo_5};
0030  case 'template_ext' % extension for template images
0031   varargout = {'.nii'}; 
0032  case 'get_img_ext' % default image extension for spm_get
0033   varargout = {'image'};
0034  case 'pref_img_out_ext' % preferred extension for writing images
0035   varargout = {'.nii'}; 
0036  case 'des_conf'     % filter for configured, not estimated SPM designs
0037   varargout = {'SPM.mat'};
0038  case 'flip_option'
0039   varargout = {spm_flip_analyze_images};
0040  case 'design_filter_spec' 
0041   varargout = {{...
0042     'SPM.mat','SPM.mat; 5,2 (all)/99 (estimated: SPM.mat)';...
0043     'SPMcfg.mat','99 with imgs: SPMcfg.mat';...
0044     'SPM_fMRIDesMtx.mat','99,FMRI,no imgs: SPM*fMRI*'}}; 
0045  otherwise
0046   error(['You asked for ' arg ', which is strange']);
0047 end

Generated on Thu 17-Mar-2016 01:14:46 by m2html © 2005