Save FCN (and optionally function sets) to a .mat file with extension .fcn.
save(f)
save(f,'file.fcn')
filename = save(f,FILENAME,FSET,'-append')
SAVE writes FCN objects and optionally function sets to a .fcn file. Only a single FCN object can be saved to a given FCN file. FCN is the FCN object to save. FILENAME is an optional string containing the filename. If it is not provided, you will be prompted with a graphical file selector. FSET is an optional function set structure.
By default the .fcn file will be overwritten with the new data. If the string '-append' is provided, the supplied variables are appended to the file. If an empty FCN object is provided, it will not overwrite the existing functions in the file.
For example, to overwrite a function set in an existing file, you can use
save(fcn([]),'filename.fcn',fset_new,'-append');
The example below, where F is a non-empty FCN, writes the new FCN to the file but does not overwrite the existing function set in the file.
save(f,'filename.fcn','-append');
fcn/load, fcn/md5sum