tags:

views:

32

answers:

2

I have an mXn matrix of integers. I want to write the matrix to a text file. I also want to read the file later and assign the values to another mXn matrix. How?

EDIT: I want it to be as easy as possible to later load the content of the file to a variable in matlab (a matrix). I also might use the file in a C program where I load the numbers in the file to an mXn array.

+1  A: 

See save and load:

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/save.shtml http://www.mathworks.com/access/helpdesk/help/techdoc/ref/load.shtml

michid