Systems Theory and Automatic Control

ADMITsave
ADMIT documentation: ADMITsave

ADMITsave

ADMITsave saves OPT, OPTINFO, OPTRESULT, OPTDATA, OPTIONS

ADMITsave(GENERICNAME,VAR) saves variable VAR in file GENERICNAME, where
VAR can be one of the following objects:
ADMITproject, ADMITinfo, ADMITresults, ADMITdata, ADMIToptions

ADMITsave(GENERICNAME,VAR1,VAR2,...) saves variables VAR1, VAR2,... in
file GENERICNAME, where VAR can be one of the following objects:
ADMITinfo, ADMITresults, ADMITdata, ADMIToptions

ADMITsave(GENERICNAME,VAR1,VAR2,...,'ADMIT:overwrite') does not ask for
user input in case the variables are to be overwritten.

This function writes the input variables into the file named
genericName.mat in the current folder. It also checks whether the file
already exists and issues a warning in case if the file exists and
contains variables of the same type. User is asked to give input to
confirm overwriting. Note: variables are given default names to ensure
consistency.

If the input variable is an ADMITproject object, then this function
exports the object as a text file (opt-file) with extension ".opt".
Note existing opt-files will be overwritten without warnings.

Inputs
  GENERICNAME : name of the file where the variables will be stored.
                If variables are of type ADMITinfo, 
                ADMITresults, ADMITdata, ADMIToptions,
                Then the agreement is for this name to be equal to the 
                name of the opt task, i.e. the same as in optInfo.name or
                optResult.name.
  VAR[i]      : the variable, that will be stored, currently only the
                following types are supported:
                  - opt       (ADMITproject)
                  - optInfo   (ADMITinfo)
                  - optResult (ADMITresults)
                  - optData   (ADMITdata)
                  - ops       (ADMIToptions)
                upper/lower case is ignored, but the variables are stored
                in the form described above.