Creating Multiple Line plots

조회 수: 1 (최근 30일)
Jonathan Asante
Jonathan Asante 2018년 3월 28일
편집: Walter Roberson 2018년 3월 28일
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

답변 (1개)

Star Strider
Star Strider 2018년 3월 28일
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

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by