After some research, it's probablty because everything happens within functions and their own workspaces. Is there a way to make them all visible at the same time in the same window?
Empty workspace with GUI
2 次查看(过去 30 天)
显示 更早的评论
Hi to all,
I use the workspace to debug my programs, but I made a program with a GUI now and the workspace stays empty. Why is it empty and how get the variables to appear in the workspace?
采纳的回答
Luffy
2012-7-27
Try storing variables in base work space by,
assignin('base','name of variable u want to save','value of variable');
To access variable
v = evalin('base','name of variable u want to access');
% the variable's data is now stored in v.
Several ways are shared in the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 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!