Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

How to pass values from GUI table to workspace

Asked by Arun Badigannavar on 11 Dec 2012
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 Comments

Arun Badigannavar

Tags

Products

No products are associated with this question.

1 Answer

Answer by Walter Roberson on 11 Dec 2012

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 Comments

Arun Badigannavar on 11 Dec 2012

its generating crash report

Walter Roberson on 11 Dec 2012

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.

Walter Roberson

Contact us