Why cant' I plot this graph?
古いコメントを表示
x = linspace(0,2,250);
y = 15*x^3-9*x^2-36*x+36;
plot(y,x)
回答 (1 件)
David Hill
2020 年 11 月 23 日
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 Exchange で Polynomials についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!