Azzera filtri
Azzera filtri

How to save cell array of workspace vars into mat?

28 visualizzazioni (ultimi 30 giorni)
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)

Risposta accettata

Stephen23
Stephen23 il 3 Apr 2020
Modificato: Stephen23 il 23 Feb 2022

Più risposte (0)

Categorie

Scopri di più su Workspace Variables and MAT-Files in Help Center e File Exchange

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by