ho to Send data from uitable to workspace?

 Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 28 Mär. 2013

0 Stimmen

You can use assignin
Read your data from your table then send it to workspace
data=get(gandles.uitable1,'Data')
assignin('base','data',Data)

4 Kommentare

Arun Badigannavar
Arun Badigannavar am 28 Mär. 2013
I AM trying this ,,,but data value is not storing in workspace
Azzi Abdelmalek
Azzi Abdelmalek am 28 Mär. 2013
Bearbeitet: Azzi Abdelmalek am 28 Mär. 2013
How did you check that the variable data is not in workspace? And please, post the part of your code you've tried
Arun Badigannavar
Arun Badigannavar am 28 Mär. 2013
By keyword'who',,,its coming thnks for ypur response
Arun Badigannavar
Arun Badigannavar am 28 Mär. 2013
How to update table data every time?I mean values for uitable wll come from workspace every one second ,,how to update it?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (2)

Jing
Jing am 28 Mär. 2013

0 Stimmen

How do you store the data in uitable? You can either save it to a mat file or make the variable global.

1 Kommentar

Arun Badigannavar
Arun Badigannavar am 28 Mär. 2013
User will edit in the uitable,,,edited value should updatee in workspace

Melden Sie sich an, um zu kommentieren.

Suraj Srivastava
Suraj Srivastava am 18 Feb. 2015

0 Stimmen

I am facing the same issue....Kindly help it out...
Any help is really appreciated.
Thank you,

1 Kommentar

if true
% code
end
data=get(handles.uitable1,'data');
assignin('base','data',data)
data = cell2mat(data)
the result in a numerical data not a cell array

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by