Notice! This document is currently in Archived status.
The content of this document may be incorrect or out dated.

Professor Bourman's Matlab Tutorial

READING and WRITING DATA


%LOADING DATA




data                            (file name)
--------------------

1 2 3
4 5 6
7 8 1



>> load data
>> data

data =

1     2     3
4     5     6
7     8     1

                        Use your favorite editor to create
                        your file...place only elements in the
                        file (no titles).

>> A=data

>> save data.out A -ascii       (data.out => file, A => matrix, -ascii => form)

data.out                        (file name)
---------------------

1.0000000e+00   2.0000000e+00   3.0000000e+00
4.0000000e+00   5.0000000e+00   6.0000000e+00
7.0000000e+00   8.0000000e+00   1.0000000e+00

Last modified: 2007/03/20 17:12:16.078000 GMT-4 by Unknown
Created: 2007/03/20 17:12:16.078000 GMT-4 by brian.r.brinegar.1.

Categories

Search

Type in a few keywords describing what information you are looking for in the text box below.

Admin Options: Edit this Document