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

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

Respuestas (1)

Gouri Chennuru
Gouri Chennuru el 24 de Sept. de 2020

0 votos

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 comentario

HYEONJU KIM
HYEONJU KIM el 17 de Oct. de 2020
thank you:)

La pregunta está cerrada.

Etiquetas

Preguntada:

el 22 de Sept. de 2020

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!