Plotting graph for specific columns and rows

22 views (last 30 days)
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.

Accepted Answer

Matt J
Matt J on 4 Aug 2022
plot(yourTable{1:4000,20}, yourTable{1:4000,60})
  4 Comments
Torsten
Torsten on 4 Dec 2023
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 on 4 Dec 2023
Edited: Matt J on 4 Dec 2023
Or just,
plot(yourTable{1:4000,20}, yourTable{1:4000,[60,70,...]})

Sign in to comment.

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!