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.

 Réponse acceptée

Matt J
Matt J le 4 Août 2022
plot(yourTable{1:4000,20}, yourTable{1:4000,60})

4 commentaires

Krishna
Krishna le 5 Août 2022
It worked
Mia
Mia le 4 Déc 2023
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 le 4 Déc 2023
Modifié(e) : Matt J le 4 Déc 2023
Or just,
plot(yourTable{1:4000,20}, yourTable{1:4000,[60,70,...]})

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange

Produits

Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by