save workspace variables to *.dat along with int type
3 ビュー (過去 30 日間)
古いコメントを表示
How to save workspace to *.dat along with int type?
1 件のコメント
回答 (1 件)
Jan
2011 年 5 月 11 日
If you have a STRUCT or CELL in the workspace, what result do you expect after saving the data to a dat file with INT type? I cannot imagine, that there is a reliable solution for the general task.
Please post any details.
2 件のコメント
Jan
2011 年 5 月 12 日
a = int32(1:4);
save a.dat a -ascii
or:
fid = fopen('a.dat', 'w');
fprintf('%d ', a);
fclose(fid);
参考
カテゴリ
Help Center および File Exchange で Audio and Video Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!