when i am saving workspce of function , it's not containing all variables.
Afficher commentaires plus anciens
when i am saving workspce of function , it's not containing all variables. and when i run through command window it showing all data for the same data.
why it's showing the difference between workspace?
3 commentaires
Walter Roberson
le 12 Nov 2020
There are some kinds of variables that are not serializable and cannot be completely saved to files. Device related variables often cannot be saved, and variables related to Parallel Computing Toolbox cannot always be saved.
Sonali Patil
le 13 Nov 2020
Rik
le 13 Nov 2020
Your comment is very confusing. Data is not saved in an m file, but in a mat file.
Why would you want to merge the base and function workspace? If you want them to be the same you can use a script. The whole point of functions is to hide the internals from the caller. What do you want to achieve?
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!