フィルターのクリア

Graph function problem Incorrect values

1 回表示 (過去 30 日間)
Emilia
Emilia 2022 年 7 月 28 日
コメント済み: Emilia 2022 年 7 月 28 日
Hello,
I have this function, If I want to produce a graph in the range of 0<x<50 it does not give a correct answer of y. Thanks for the helpers
x=1
y=-x.^3+3*x.^2+2*x-27
y =
-23
%%plot
x=[0:50];
y=-x.^3+3*x.^2+2*x-27;
plot(x,y)

採用された回答

Chunru
Chunru 2022 年 7 月 28 日
What's wrong?
x=[0:50];
y=-x.^3+3*x.^2+2*x-27;
plot(x,y)
  3 件のコメント
Chunru
Chunru 2022 年 7 月 28 日
The y axis scale is x10^4. If you zoom in, you will see the correct value.
Emilia
Emilia 2022 年 7 月 28 日
Yes, you're right, I didn't notice. Thank you! :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by