How to pass values from GUI table to workspace
1 次查看(过去 30 天)
显示 更早的评论
A=get(t,'Data');
% create double array from a cell array A
B=cell2mat(A);
% assign the value of the dot product to the variable 'result' in the workspace
assignin('base','result',B)...
is my code to show data in workspace though programming,,,but its not working out
0 个评论
回答(1 个)
Walter Roberson
2012-12-11
Which part of it is not working?
assignin('base') sets variables in the "base" workspace, which is the same workspace as the command line normally accesses. If you want to retrieve anything from the base workspace, you need to use
evalin('base', 'result')
5 个评论
Walter Roberson
2012-12-11
编辑:Walter Roberson
2012-12-11
Please post the beginning of the crash report. Also, please use the debugger to step through your program to find out exactly which step is causing the crash.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Debugging and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!