플롯을 그려야 하는데 어떻게 함수를 입력해야 할지 모르겠어요

Plot the function= 3x^2+2
over the interval 0 ≤ x ≤ 10.

回答 (1 件)

Gouri Chennuru
Gouri Chennuru 2020 年 9 月 24 日

0 投票

Hi Hyeonju,
You can make use of the "fplot" fucntion available in MATLAB which is mainly used to plot expression or function.
As a workaround you can try the following code in MATLAB
x = [0 10]
fplot(@(x)3*x.^2+2,[0 10])
Hope this Helps!

1 件のコメント

HYEONJU KIM
HYEONJU KIM 2020 年 10 月 17 日
thank you:)

この質問は閉じられています。

タグ

質問済み:

2020 年 9 月 22 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!