MATLAB Answers


How to pass values from GUI table to workspace

Asked by Arun Badigannavar on 11 Dec 2012
% create double array from a cell array A
% assign the value of the dot product to the variable 'result' in the workspace

is my code to show data in workspace though programming,,,but its not working out




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')


its generating crash report

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.

Join the 15-year community celebration.

Play games and win prizes!

Learn more
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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!