appending data to a data filea text file once


Appending data to a data File:

A text file once exists; the data can be appended to it. The format is similar as formerly, with the addition of the qualifier -append. For illustration, the following generates a new random matrix and appends it to the file merely generated:

>> mymat = rand(3,3)

mymat =

0.9218 0.4057 0.4103

0.7382 0.9355 0.8936

0.1763 0.9169 0.0579

>> save testfile.dat mymat -ascii -append

The results in the file testfile.dat hold

0.4565 0.8214 0.6154

0.0185 0.4447 0.7919

0.9218 0.4057 0.4103

0.7382 0.9355 0.8936

0.1763 0.9169 0.0579

Note: However technically any size matrix could be appended to this data file, in order to be capable to read it back into the matrix later there would have to be similar number of values on every row.

Request for Solution File

Ask an Expert for Answer!!
Applications of MATLAB: appending data to a data filea text file once
Reference No:- TGS0174781

Expected delivery within 24 Hours