Borrar filtros
Borrar filtros

How to save cell array of workspace vars into mat?

28 visualizaciones (últimos 30 días)
Penny Ibil
Penny Ibil el 2 de Abr. de 2020
Editada: Stephen23 el 23 de Feb. de 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)

Respuesta aceptada

Stephen23
Stephen23 el 3 de Abr. de 2020
Editada: Stephen23 el 23 de Feb. de 2022

Más respuestas (0)

Categorías

Más información sobre Workspace Variables and MAT-Files en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by