Storing matlab variables for future use

조회 수: 7 (최근 30일)
Diptangshu Sen
Diptangshu Sen 2019년 2월 17일
댓글: Diptangshu Sen 2019년 2월 17일
I ran a pretty long simulation on Matlab. Now, I need to run another one that uses the variable values from the previous one. But, I don't want to run the first simulation everytime I need to run the second time. The best case would be if I was able to store the workspace from the first simulation and allow the second simulation to use that as a starting point, whenever required. Is there any way this can be accomplished? Any help will be appreciated.
Regards,
Sen.
  댓글 수: 1
Diptangshu Sen
Diptangshu Sen 2019년 2월 17일
My question is precise and to the point. If you have confusions, please do not answer. Better than misleading people at least. There are lots od beginners on the community, asking questions. Sets them on a useless trail. And please do not take offence. There are community guidelines regarding both questioning and answering. Peace.

댓글을 달려면 로그인하십시오.

채택된 답변

Geoff Hayes
Geoff Hayes 2019년 2월 17일
Diptangshu - use save to write the output from the first simulation to file, and then use load to read that data from file for your second simuation.
  댓글 수: 1
Diptangshu Sen
Diptangshu Sen 2019년 2월 17일
Thanks. I will try this out and get back

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by