how to plot three variables in a line graph with values ?
조회 수: 4 (최근 30일)
이전 댓글 표시
ax[1] = 0.98 ax[2] = 1.2 ax[3] = 0.23
bx[1] = 2.1 bx[2] = 0.236 bx[3] = 1.25
cx[1] = 0.01 cx[2] = 0.025 cx[3] = 0.52
plot(ax,bx,cx); is possible ?
댓글 수: 0
채택된 답변
추가 답변 (1개)
Azzi Abdelmalek
2013년 5월 14일
편집: Azzi Abdelmalek
2013년 5월 14일
ax(1) = 0.98
ax(2) = 1.2
ax(3) = 0.23
bx(1) = 2.1
bx(2) = 0.236
bx(3) = 1.25
cx(1) = 0.01
cx(2) = 0.025
cx(3) = 0.52
plot(ax,bx,cx)
Use () instead of [ ]
댓글 수: 2
Waleed Eid
2022년 4월 17일
you have incorrect code.
Error using plot
Data must be a single input of y --values or
one or more pairs of x -- and y--values.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!