【发布时间】:2013-07-11 23:34:06
【问题描述】:
假设我有一个矩阵
test =
{
[1,1] = one
[1,2] = two
[1,3] = three
}
我想把它写到一个文件中。我愿意
`save myfile.txt test`
但是当我用记事本++打开文件时,我得到MATLAB 5.0 MAT-file, written by Octave 3.2.4, 2013-07-11 15:23:20 UTC,然后是一堆NULSOHBSACK等...
有没有办法将矩阵写入纯文本文件,使其看起来像:
1
2
3
【问题讨论】:
-
使用
'-ascii'标志保存