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에서 Simulink에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!