Plotting colums from matrix

3 visualizaciones (últimos 30 días)
Noah Swiston
Noah Swiston el 14 de Abr. de 2015
Respondida: William el 14 de Abr. de 2015
I am looking to plot certain colums from a matrix. I want to plot colums 7-10 and column 12 all on a line graph. Thanks
  1 comentario
Jonathan Campelli
Jonathan Campelli el 14 de Abr. de 2015
Is column 12 intended to be your X or Y axis?

Iniciar sesión para comentar.

Respuestas (1)

William
William el 14 de Abr. de 2015
If your data array is like...... data(row,column)
a = data(:,7:10)
b = data(:,12)
hold on
plot(a)
plot(b)
hold off

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by