fplot is not working

38 visualizaciones (últimos 30 días)
rohinesh r
rohinesh r el 26 de Oct. de 2020
Editada: Cris LaPierre el 26 de Oct. de 2020
syms x
f(x) = sin(x)
fplot(f(x),[-pi/2,pi/2])

Respuestas (1)

Cris LaPierre
Cris LaPierre el 26 de Oct. de 2020
Editada: Cris LaPierre el 26 de Oct. de 2020
You are close. The error in line 3 is because f(x) is not the function name. Check in your workspace and you'll see that f is.
syms x
f(x) = sin(x)
f(x) = 
sin(x)
fplot(f,[-pi/2,pi/2])

Categorías

Más información sobre Formula Manipulation and Simplification en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by