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!