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!