External Interfaces |
Saving and Loading Java Objects to MAT-Files
Use the MATLAB save
function to save a Java object to a MAT-file. Use the load
function to load it back into MATLAB from that MAT-file. To save a Java object to a MAT-file, and to load the object from the MAT-file, make sure that the object and its class meet all of the following criteria:
If you define your own Java classes, or subclasses of existing classes, you can follow the criteria above to enable objects of the class to be saved and loaded in MATLAB. For details on defining classes to support serialization, consult your Java development documentation. (See also To Learn More About Java Programming).
Concatenating Java Objects | Finding the Public Data Fields of an Object |
© 1994-2005 The MathWorks, Inc.