save data2.dat a -asciiThis command causes each row of the arraya(more on arrays later) to be written to a separateline in the data file. Array elements on a line are separated by spaces. The separating charactercan be made a tab with the command:save data2.dat a -ascii -tabThe.matextension is not added to an ASCII text file. However, it is recommended that ASCIItext file names include the extension.datso that it is easy to distinguish them from MAT-filesand M-files (to be described in the next section).For an example of importing text data, suppose that a text file nameddata3.datcontains a setof values that represent the time and corresponding distance of a runner from the starting line ina race. Each time and its corresponding distance value are on a separate line of the data file. Thevalues on a line must be separated by one or more spaces. Consider a data file nameddata3.datcontaining the following:0.00.00.13.50.26.8Theload
This is the end of the preview.
access the rest of the document.