Borrar filtros
Borrar filtros

Plotting graph for specific columns and rows

20 visualizaciones (últimos 30 días)
Krishna
Krishna el 4 de Ag. de 2022
Editada: Matt J el 4 de Dic. de 2023
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.

Respuesta aceptada

Matt J
Matt J el 4 de Ag. de 2022
plot(yourTable{1:4000,20}, yourTable{1:4000,60})
  4 comentarios
Torsten
Torsten el 4 de Dic. de 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 el 4 de Dic. de 2023
Editada: Matt J el 4 de Dic. de 2023
Or just,
plot(yourTable{1:4000,20}, yourTable{1:4000,[60,70,...]})

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by