ho to Send data from uitable to workspace?

조회 수: 3 (최근 30일)
Arun Badigannavar
Arun Badigannavar 2013년 3월 28일
댓글: imene. B 2016년 7월 11일
How to send data from GUI uitable to workspace

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 3월 28일
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
Arun Badigannavar
Arun Badigannavar 2013년 3월 28일
By keyword'who',,,its coming thnks for ypur response
Arun Badigannavar
Arun Badigannavar 2013년 3월 28일
How to update table data every time?I mean values for uitable wll come from workspace every one second ,,how to update it?

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Jing
Jing 2013년 3월 28일
How do you store the data in uitable? You can either save it to a mat file or make the variable global.
  댓글 수: 1
Arun Badigannavar
Arun Badigannavar 2013년 3월 28일
User will edit in the uitable,,,edited value should updatee in workspace

댓글을 달려면 로그인하십시오.


Suraj Srivastava
Suraj Srivastava 2015년 2월 18일
I am facing the same issue....Kindly help it out...
Any help is really appreciated.
Thank you,
  댓글 수: 1
imene. B
imene. B 2016년 7월 11일
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by