How can I use a function to save main workspace variables?
Afficher commentaires plus anciens
I have a function that saves my figures as .fig with customized parameters in a subfolder with the same name of the figure: save_fig_cust('name_of_file'). I want this function also save all variables in the workspace to a file in the same folder. However, when I run the function, it sees only its own workspace and not the main workspace.
How can a function save the main workspace? Thanks guys, Gerrard
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Workspace Variables and MAT Files dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!