plot a table of two columns

조회 수: 14(최근 30일)
William Lancelot
William Lancelot 2021년 10월 17일
답변: KSSV 2021년 10월 17일
I have a UITable in MATLAB appdesginer that looks like this:
column 1 column 2
0 4
2 3
4 11
and so forth
I would like to create a plot that takes the first column as the x inputs and the second column as the y inputs on the UIAxes
ex: plot(x,y) or plot(column 1, column2)
Can someone please tell me how I can achieve this? - thanks

채택된 답변

KSSV
KSSV 2021년 10월 17일
If T is your table. To plot use:
plot(T.(1),T.(2))

추가 답변(0개)

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by