problem with saving data as .mat file

조회 수: 2 (최근 30일)
Rica
Rica 2012년 12월 7일
Hi !
i have an output of a for loop. i want to save this output as .mat file.
how could i do this ?
I tried with save and fprintf but no results...
thank you for help

채택된 답변

Walter Roberson
Walter Roberson 2012년 12월 7일
for K = 1 : 20
filename = sprintf('File_%03d.mat', K);
save(filename, 'K');
end
  댓글 수: 1
Rica
Rica 2012년 12월 7일
i used this dlmwrite('filename.txt',VAR). and with load i could load the data. thank you for the answer

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by