This preview shows page 1. Sign up to view the full content.
Unformatted text preview: data_1.mat Exporting and Importing Data There are also situations in which you wish to export Matlab data to be operated upon with other programs, or to import data created by other programs. This must be done with text ±les written with save or read with load . To write a text ±le data1.dat in the current working directory containing values of Matlab variables in long e format: save data1.dat -ascii Note that the individual variables will not be identi±ed with labels or separated in any way. Thus, if you have de±ned variables a and b in the Matlab workspace, the command above will output ±rst the values in a , then the values in b , with nothing separating them. Thus, it is often desirable to write text ±les containing the values of only a single variable, such as: 41...
View Full Document
- Summer '09