method to get/set design directory FORMAT dir = swd(D); % get FORMAT D = swd(D, dir); % set $Id$
0001 function res = swd(D, dir) 0002 % method to get/set design directory 0003 % FORMAT dir = swd(D); % get 0004 % FORMAT D = swd(D, dir); % set 0005 % 0006 % $Id$ 0007 0008 SPM = des_struct(D); 0009 if nargin < 2 0010 res = mars_struct('getifthere', SPM, 'swd'); 0011 else 0012 SPM.swd = dir; 0013 res = des_struct(D, SPM); 0014 end