How to save matlab coding output data in a file?
显示 更早的评论
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 个评论
Walter Roberson
2019-2-8
is this a Simulink question ?
madhan ravi
2019-2-8
Sky Scrapper
2019-2-8
编辑:Sky Scrapper
2019-2-8
Sky Scrapper
2019-2-8
madhan ravi
2019-2-8
Why not use save() ?
Sky Scrapper
2019-2-8
madhan ravi
2019-2-8
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
2019-2-8
Walter Roberson
2019-2-8
Do not save naming .m file as destination . Name a .mat file.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File 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!