Plotting Data from a matlab gui Table ?

How can i plot two columns of a table in matlab gui together in an axes ?

 採用された回答

Geoff Hayes
Geoff Hayes 2017 年 4 月 16 日

0 投票

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 件のコメント

fitriyanni jeff
fitriyanni jeff 2021 年 1 月 10 日
may i ask, can i plot graph in gui using data from uitable? if yes can you please share me what is the coding
Geoff Hayes
Geoff Hayes 2021 年 1 月 12 日
The code would be similar to the above posted code...you just need to extract the data from your uitable.
Kev' junior
Kev' junior 2021 年 6 月 26 日
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 2021 年 6 月 28 日
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.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by