Creating Multiple Line plots

1 Ansicht (letzte 30 Tage)
Jonathan Asante
Jonathan Asante am 28 Mär. 2018
Bearbeitet: Walter Roberson am 28 Mär. 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

Antworten (1)

Star Strider
Star Strider am 28 Mär. 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

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by