Using the diary Function to Export Data
To export small numeric arrays or cell arrays, you can use the
diary creates a verbatim copy of your MATLAB session in a disk file (excluding graphics).
For example, if you have the array
A in your workspace,
execute these commands at the MATLAB prompt to export this array using
diaryfunction. You can optionally name the output file
A. You could also display a cell array or other MATLAB data type.
diarycreates the file
my_data.outand records all the commands executed in the MATLAB session until it is turned off.
my_data.outin a text editor and remove all the extraneous text.
|Exporting Delimited ASCII Data Files||Exporting to XML Documents|
© 1994-2005 The MathWorks, Inc.