Saving workspace via command

16 次查看(过去 30 天)
I have written code to produce 30 (approx) numeric matrices, all of which I wish to save to a given directory under a single .mat name. What code can be written within the script to save the entire workspace automatically?

采纳的回答

Walter Roberson
Walter Roberson 2021-10-19
save('NameOfFileToSaveTo.mat')
  1 个评论
Sam Hurrell
Sam Hurrell 2021-10-20
That saves the workspace to the current folder, how would I save it to a defined location?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

标签

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by