简体   繁体   中英

How do I write to a file in Matlab?

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.

请参阅功能保存加载

DLMREAD / DLMWRITE对您有用吗?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM