Home > marsbar > @mardo_99 > ui_build.m

ui_build

PURPOSE ^

method to create / fill design via GUI

SYNOPSIS ^

function D = ui_build(D, dtype)

DESCRIPTION ^

 method to create / fill design via GUI
 FORMAT D = ui_build(D, dtype)

 D      - design object
 dtype  - one of 'PET', 'FMRI', 'Basic')
 
 Returns
 D      - design object with new design

 $Id$

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function D = ui_build(D, dtype)
0002 % method to create / fill design via GUI
0003 % FORMAT D = ui_build(D, dtype)
0004 %
0005 % D      - design object
0006 % dtype  - one of 'PET', 'FMRI', 'Basic')
0007 %
0008 % Returns
0009 % D      - design object with new design
0010 %
0011 % $Id$
0012 
0013 if nargin < 2
0014   error('Need design type');
0015 end
0016 
0017 switch lower(dtype)
0018  case 'pet'
0019   SPM = pr_spm_ui('cfg',spm_spm_ui('DesDefs_PET'));
0020  case 'basic'
0021   SPM = pr_spm_ui('cfg',spm_spm_ui('DesDefs_Stats'));
0022  case 'fmri'
0023   SPM = pr_fmri_design;
0024  otherwise
0025   error(['Did not recognize design type: ' dtype]);
0026 end
0027 D = des_struct(D, SPM);

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