Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Plotting without Specifying a set x range

1 回表示 (過去 30 日間)
Calvin Chang
Calvin Chang 2019 年 6 月 24 日
閉鎖済み: Guillaume 2019 年 6 月 24 日
The following code should work. Why doesn't it work? How can I make this work?
x=[0 1 2 3 4];
y=[2 9/4 38/17 161/72 682/305];
plot(x,y)
Index in position 1 is invalid. Array indices must be positive integers or logical values.
Error in test (line 4)
plot(x,y)

回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by