How to save matlab coding output data in a file?
Afficher commentaires plus anciens
Hello,
I am working with matlab coding. I need to run the simulations for different models. For the 1st model, I run the simulation, it saves output in the workspace. but when i run the 2nd model, it saves the output file for the 2nd model. That is why i need to save the output for the 1st model to a file. So, i can store my outputs of all models.
can anyone please suggest me how to do?
11 commentaires
Walter Roberson
le 8 Fév 2019
is this a Simulink question ?
madhan ravi
le 8 Fév 2019
Sky Scrapper
le 8 Fév 2019
Modifié(e) : Sky Scrapper
le 8 Fév 2019
Sky Scrapper
le 8 Fév 2019
madhan ravi
le 8 Fév 2019
Why not use save() ?
Sky Scrapper
le 8 Fév 2019
madhan ravi
le 8 Fév 2019
It saves in a file named finaloutput.mat to use the values simply use
load finaloutput.mat % variables will be loaded in workspace
Sky Scrapper
le 8 Fév 2019
Walter Roberson
le 8 Fév 2019
Do not save naming .m file as destination . Name a .mat file.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Workspace Variables and MAT Files dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!