Plotting graph for specific columns and rows

조회 수: 22 (최근 30일)
Krishna
Krishna 2022년 8월 4일
편집: Matt J 2023년 12월 4일
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일
plot(yourTable{1:4000,20}, yourTable{1:4000,60})
  댓글 수: 4
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개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by