Home > marsbar > @mardo > summary.m

summary

PURPOSE ^

method returns cell array of strings describing design

SYNOPSIS ^

function strs = summary(D)

DESCRIPTION ^

 method returns cell array of strings describing design
 
 $Id$

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^

0001 function strs = summary(D)
0002 % method returns cell array of strings describing design
0003 %
0004 % $Id$
0005 
0006 strs{1} = sprintf('SPM working dir    \t%s',  swd(D));
0007 strs{2} = sprintf('Design type:       \t%s',  type(D));
0008 strs{3} = sprintf('Modality:          \t%s',  modality(D));
0009 if is_fmri(D)
0010   tmp = sf_recode(has_filter(D));
0011 else
0012   tmp = 'N/A';
0013 end
0014 strs{4} = sprintf('Has filter?:       \t%s',  tmp);
0015 strs{5} = sprintf('Has images?:       \t%s',  ...
0016           sf_recode(has_images(D)));
0017 strs{6} = sprintf('MarsBaR estimated?:\t%s', ...
0018           sf_recode(is_mars_estimated(D)));
0019 strs = [strs {'Description:'}, descrip(D)];
0020 
0021 return
0022 
0023 function str = sf_recode(tf)
0024 if isnan(tf), str = 'unknown';
0025 elseif tf,    str = 'yes';
0026 else          str = 'no';
0027 end

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