when i am saving workspce of function , it's not containing all variables.
이전 댓글 표시
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
Walter Roberson
2020년 11월 12일
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
2020년 11월 13일
Rik
2020년 11월 13일
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?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!