problem with saving data as .mat file

4 次查看(过去 30 天)
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