Plotting graph for specific columns and rows

I have a table with 60 columns and 60,000 rows. I need to plot graph with x-axis as my 20th column and y-axis as 60th column. I just need to plot the graph for rows from 1 to 4000. please help me with a solution.

 採用された回答

Matt J
Matt J 2022 年 8 月 4 日

0 投票

plot(yourTable{1:4000,20}, yourTable{1:4000,60})

4 件のコメント

Krishna
Krishna 2022 年 8 月 5 日
It worked
Mia
Mia 2023 年 12 月 4 日
How do you do multiple lines with the same x-axis?
Torsten
Torsten 2023 年 12 月 4 日
hold on
plot(yourTable{1:4000,20}, yourTable{1:4000,60})
plot(yourTable{1:4000,20}, yourTable{1:4000,70})
...
hold off
Matt J
Matt J 2023 年 12 月 4 日
編集済み: Matt J 2023 年 12 月 4 日
Or just,
plot(yourTable{1:4000,20}, yourTable{1:4000,[60,70,...]})

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

製品

リリース

R2022a

質問済み:

2022 年 8 月 4 日

編集済み:

2023 年 12 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by