plot columns of a table
조회 수: 341 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2018년 5월 1일
답변: MathWorks Support Team
2018년 5월 1일
How do I plot two of the columns of my table?
I have a table "t" with variable (column) names "x" and "y". How do I plot these variables as plot(x,y)?
>> t = table([2 4 5]', [7 3 5]', 'VariableNames', {'x','y'});
채택된 답변
MathWorks Support Team
2018년 5월 1일
This can be done by accessing the data of the table. The following link details how you can extract data from a table:
The method below uses Dot Indexing.
>> plot(t.x, t.y);
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Tables에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!