MATLAB Answers

0

ho to Send data from uitable to workspace?

Asked by Arun Badigannavar on 28 Mar 2013
Latest activity Commented on by imene benrabia on 11 Jul 2016

How to send data from GUI uitable to workspace

  0 Comments

Tags

Products

No products are associated with this question.

3 Answers

Answer by Azzi Abdelmalek
on 28 Mar 2013
 Accepted answer

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 Comments

How did you check that the variable data is not in workspace? And please, post the part of your code you've tried

By keyword'who',,,its coming thnks for ypur response

How to update table data every time?I mean values for uitable wll come from workspace every one second ,,how to update it?


Answer by Jing
on 28 Mar 2013

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

  1 Comment

User will edit in the uitable,,,edited value should updatee in workspace


Answer by Suraj Srivastava on 18 Feb 2015

I am facing the same issue....Kindly help it out...

Any help is really appreciated.

Thank you,

  1 Comment

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


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!