how to make matlab save (filename) command work?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi everyone! When I try to write save(filename) something strange like this happen to my code. The strange thing is that a week ago I was able to use these command without problems. Can anyone help me?
1 件のコメント
採用された回答
Voss
2022 年 6 月 9 日
編集済み: Voss
2022 年 6 月 9 日
save saves to a mat file, so what is happening when you do this
save('untitled2.m')
is that a file is created called untitled.m, which has .m extension but .mat format, so when you look at it in the editor you're looking at binary data contained in that mat file.
To save a mat file with .mat extension do this
save('untitled2.mat')
or this
save('untitled2')
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!