problem with saving data as .mat file

4 vues (au cours des 30 derniers jours)
Rica
Rica le 7 Déc 2012
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

Réponse acceptée

Walter Roberson
Walter Roberson le 7 Déc 2012
for K = 1 : 20
filename = sprintf('File_%03d.mat', K);
save(filename, 'K');
end
  1 commentaire
Rica
Rica le 7 Déc 2012
i used this dlmwrite('filename.txt',VAR). and with load i could load the data. thank you for the answer

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Workspace Variables and MAT Files dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by