when i am saving workspce of function , it's not containing all variables.
Ältere Kommentare anzeigen
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 Kommentare
Walter Roberson
am 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
am 13 Nov. 2020
Rik
am 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?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Workspace Variables and MAT Files finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!