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!