Info

この質問は閉じられています。 編集または回答するには再度開いてください。

could anyone tell me how to save the values while the code is getting executed

1 回表示 (過去 30 日間)
Prabha Kumaresan
Prabha Kumaresan 2018 年 6 月 1 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
could anyone tell me how to save the values while the code is getting executed

回答 (2 件)

Anton Semechko
Anton Semechko 2018 年 6 月 1 日
save('FileName.m','name_of_variable_you_want_to_save')

Aakash Deep
Aakash Deep 2018 年 6 月 1 日
Use save command to save the current value of the variable.
save filename variable1
This will create .mat file (for this, filename.mat) in your current working directory. If you want to store multiple variables in a single file, you can do it by adding variable name in the same command.
save filename var1 var2 var_n
It is good when the value of the variable is changing.

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by