Home > marsbar > spm2 > 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 2 version

 $Id$

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 2 version
0006 %
0007 % $Id$
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     spm_defaults;
0019     spm('defaults','FMRI');
0020   end
0021   varargout = {defaults};
0022  case 'default_design'
0023   varargout = {mardo_2};
0024  case 'template_ext' % extension for template images
0025   varargout = {'.mnc'}; 
0026  case 'get_img_ext' % default image extension for spm_get
0027   varargout = {'IMAGE'};
0028  case 'pref_img_out_ext' % preferred extension for writing images
0029   varargout = {'img'}; 
0030  case 'des_conf'     % filter for configured, not estimated SPM designs
0031   varargout = {'SPM.mat'};
0032  case 'flip_option'
0033   varargout = {spm_flip_analyze_images};
0034  case 'design_filter_spec' 
0035   varargout = {{...
0036     'SPM.mat','SPM.mat; 2(all)/99 (estimated: SPM.mat)';...
0037     'SPMcfg.mat','99 with imgs: SPMcfg.mat';...
0038     'SPM_fMRIDesMtx.mat','99,FMRI,no imgs: SPM*fMRI*'}}; 
0039  otherwise
0040   error(['You asked for ' arg ', which is strange']);
0041 end

Generated on Wed 11-May-2022 16:26:09 by m2html © 2003-2019