Plotting Data from a matlab gui Table ?

4 views (last 30 days)
How can i plot two columns of a table in matlab gui together in an axes ?

Accepted Answer

Geoff Hayes
Geoff Hayes on 16 Apr 2017
Moustafa - if we assume that there are only two columns in your table, then you could do something like
tableData = get(tableH,'Data');
plot(axesH, tableData(:,1), tableData(:,2));
In the above, I'm assuming that tableH is the handle to your table and that axesH is the handle to the axes. (And that tableData is not a cell array.)
  4 Comments
Kev' junior
Kev' junior on 26 Jun 2021
Hi sir. i am sorry to bother you but i have tried to follow your method and i get an error:
Undefined function or variable 'tableH'. Can you please help me?
Geoff Hayes
Geoff Hayes on 28 Jun 2021
Kev - you would need to show all of the code that you have written. tableH is a variable specific to this problem and is used as an example only and so will not (according to the error) be a variable that you are using.

Sign in to comment.

More Answers (0)

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!