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?
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 Exchange에서 2-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