Creating Multiple Line plots
조회 수: 1 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (1개)
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
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!