Home > marsbar > @mardo > swd.m

swd

PURPOSE ^

method to get/set design directory

SYNOPSIS ^

function res = swd(D, dir)

DESCRIPTION ^

 method to get/set design directory
 FORMAT dir = swd(D);      % get
 FORMAT D   = swd(D, dir); % set
 
 $Id$

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

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