Plotting Data from a matlab gui Table ?

조회 수: 7 (최근 30일)
Moustafa Aboubakr
Moustafa Aboubakr 2017년 4월 16일
댓글: Geoff Hayes 2021년 6월 28일
How can i plot two columns of a table in matlab gui together in an axes ?

채택된 답변

Geoff Hayes
Geoff Hayes 2017년 4월 16일
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
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개)

카테고리

Help CenterFile Exchange에서 Develop 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