Load FCN and function sets from a .fcn file into a structure.
out = load(fcn)
out = load(fcn,filename)
[out,filename] = load(f,filename,'checksum','function_sets','silent')
LOAD reads a .fcn file into MATLAB. Since it is an FCN method, you must supply a FCN object to invoke this method. Any FCN object, including an empty FCN returned by the FCN constructor function will suffice. FILENAME is an optional string specifying the filename to read. If it is not provided, you will be prompted with a graphical file selector.
Passing in the string 'checksum' will load only the UIDs and associated function checksums, and return the output in a cell array. If the checksum data is not stored in the FCN file, load will load the functions and create the checksum data.
Passing in the string 'function_sets' will load only the functions sets stored in the file.
Passing in the string 'silent' suppresses output. load will otherwise display a warning message for any function set it loads where not all of the functions referenced by that set are found.
OUT is a structure containing the contents of the .fcn file. One field contains the FCN object. The name of the field is the name of the variable that was saved to the .fcn file. If a function set was also saved to the .fcn file, it is returned as a second field in OUT called .function_sets.
fcn/save, fcn/md5sum