SaveMATFile

Declaration: TMatlab5WorkSpace.SaveMATFile (FileName: string): integer;
The method SaveMATFile saves the data of the workspace in MatLab 5 format on file FileName.

The function returns the following error codes:

 0 ... everything is OK, the data has been saved
-1 ... nothing to save, the workspace is empty