Effacer les filtres
Effacer les filtres

How to save cell array of workspace vars into mat?

28 vues (au cours des 30 derniers jours)
Penny Ibil
Penny Ibil le 2 Avr 2020
Modifié(e) : Stephen23 le 23 Fév 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)

Réponse acceptée

Stephen23
Stephen23 le 3 Avr 2020
Modifié(e) : Stephen23 le 23 Fév 2022

Plus de réponses (0)

Catégories

En savoir plus sur Workspace Variables and MAT-Files dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by