How do I Save all the Variables in the Workspace.

13 visualizaciones (últimos 30 días)
Tianchu Lu
Tianchu Lu el 16 de Ag. de 2022
Respondida: Kevin Holly el 16 de Ag. de 2022
After each full run of my code, I have several variables within the workspace, is there a quicker way of saving them all rather than manually saving each variable by hand?
I have tried using save(filename); and save(filename,'-append'); but however when I try to load(filename) at which the variable is all saved to, it returns to me a blank workspace?
anybody has any idea on how to solve this problem?
Thank you

Respuesta aceptada

Kevin Holly
Kevin Holly el 16 de Ag. de 2022
save('filename.mat','-mat')

Más respuestas (0)

Categorías

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

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by