Saving workspace via command

22 Ansichten (letzte 30 Tage)
Sam Hurrell
Sam Hurrell am 19 Okt. 2021
Kommentiert: Sam Hurrell am 20 Okt. 2021
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?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 19 Okt. 2021
save('NameOfFileToSaveTo.mat')
  1 Kommentar
Sam Hurrell
Sam Hurrell am 20 Okt. 2021
That saves the workspace to the current folder, how would I save it to a defined location?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu File Operations finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by