save to datafile
5 次查看(过去 30 天)
显示 更早的评论
This is how they saved a matrix in my book:
I tried to save one myself but it did not work:
What did I do wrong?
1 个评论
Jan
2011-10-14
Please post the text as text. Using picture links is less convenient for reading. E.g. I cannot copy&paste your command to insert the needed space.
采纳的回答
Jan
2011-10-14
There must be a sapce before '-ascii':
save twothree.dat mymat -ascii
This abbreviated form without parenthesis should be more convenient. In the full also called functional form, the command is:
save('twothree.dat', 'mymat', '-ascii')
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Text Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!