Creating Multiple Line plots

1 visualización (últimos 30 días)
Jonathan Asante
Jonathan Asante el 28 de Mzo. de 2018
Editada: Walter Roberson el 28 de Mzo. de 2018
I've got a 5 x 5 matrix and would like to create multiple line plots using the first 1 column as x-axis and the other four as the values of y on the graph. Any help will be appreciated.
0 10 15 0 15
0.5 10 10 0 20
0.6 6 24 0 11
0.8 0 29 0 11
3 0 19 11 10

Respuestas (1)

Star Strider
Star Strider el 28 de Mzo. de 2018
Similar to the 3D line plot, but easier:
A = [0 10 15 0 15
0.5 10 10 0 20
0.6 6 24 0 11
0.8 0 29 0 11
3 0 19 11 10];
figure
plot(A(:,1), A(:,2:end))
grid

Categorías

Más información sobre 2-D and 3-D 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