Skip to content

saveexpvar

   SAVEEXPVAR (MYDIRSTRUCT, VARIABLE, NAME [, PRES])

   Saves an experiment variable VARIABLE to DIRSTRUCT MYDIRSTRUCT with
   the name NAME.  If PRES is 1, then if CELLVAR is of type MEASUREDDATA, then
   any associates of MEASUREDDATA are preserved.

   VARIABLE and NAME can also be cell lists of variables and variable names.

   Example:
       % Suppose ds is a dirstruct variable, cells is a cell list of
       % MEASUREDDATA objects corresponding to cell data, and
       % CELLNAMES is a cell list of the names of the cells. Then this
       % data can be saved by calling:
       saveexpvar(ds, cells, cellnames, 0);