Filter löschen
Filter löschen

How to save cell array of workspace vars into mat?

28 Ansichten (letzte 30 Tage)
Penny Ibil
Penny Ibil am 2 Apr. 2020
Bearbeitet: Stephen23 am 23 Feb. 2022
If I have some variables in the base workspace, and a cell array of their names e.g. vars = {'A', 'B', 'C}, how can I use the save function to stores them to a mat? This doesn't work:
save('test.mat', vars)

Akzeptierte Antwort

Stephen23
Stephen23 am 3 Apr. 2020
Bearbeitet: Stephen23 am 23 Feb. 2022

Weitere Antworten (0)

Kategorien

Mehr zu Workspace Variables and MAT-Files finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by