How to pass values from GUI table to workspace

1 vue (au cours des 30 derniers jours)
Arun Badigannavar
Arun Badigannavar le 11 Déc 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

Réponses (1)

Walter Roberson
Walter Roberson le 11 Déc 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 commentaires
Walter Roberson
Walter Roberson le 11 Déc 2012
Modifié(e) : Walter Roberson le 11 Déc 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.
Arun Badigannavar
Arun Badigannavar le 11 Déc 2012
thank u

Connectez-vous pour commenter.

Catégories

En savoir plus sur Debugging and Analysis dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by