Creating Multiple Line plots

1 visualizzazione (ultimi 30 giorni)
Jonathan Asante
Jonathan Asante il 28 Mar 2018
Modificato: Walter Roberson il 28 Mar 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

Risposte (1)

Star Strider
Star Strider il 28 Mar 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

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by