Réponses (1)

Cris LaPierre
Cris LaPierre le 26 Oct 2020
Modifié(e) : Cris LaPierre le 26 Oct 2020

0 votes

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])

Catégories

En savoir plus sur Symbolic Math Toolbox dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by