Why cant' I plot this graph?

回答 (1 件)

David Hill
David Hill 2020 年 11 月 23 日

0 投票

You need .^ for elementwise array operations
x = linspace(0,2,250);
y = 15*x.^3-9*x.^2-36*x+36;
plot(y,x)

カテゴリ

ヘルプ センター および File ExchangePolynomials についてさらに検索

質問済み:

2020 年 11 月 23 日

回答済み:

2020 年 11 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by