Home > marsbar > @maroi > saveroi.m

saveroi

PURPOSE ^

saveroi method - checks fname, sets source field, saves object

SYNOPSIS ^

function roi = saveroi(roi, fname)

DESCRIPTION ^

 saveroi method - checks fname, sets source field, saves object

 $Id$

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function roi = saveroi(roi, fname)
0002 % saveroi method - checks fname, sets source field, saves object
0003 %
0004 % $Id$
0005 
0006 if nargin < 2
0007   fname = source(roi);
0008 end
0009 if isempty(fname)
0010   error('Need filename for save');
0011 end
0012 roi.source = fname;
0013 save(roi.source, 'roi');

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