Effacer les filtres
Effacer les filtres

How to plot x^3-4x^2+1 without setting the domain?

1 vue (au cours des 30 derniers jours)
Cassandra Meyer
Cassandra Meyer le 28 Jan 2022
Commenté : Cassandra Meyer le 28 Jan 2022
I need to specifically have matlab do the default domain first without inputting it as the first part of this problem, and my initial thought was to try this but it didn't work. I'm very new to matlab so it could be a simple mistake.
fplot(@(x) x.^3+4x.^2+1)

Réponse acceptée

Voss
Voss le 28 Jan 2022
"4x" is not a valid expression. "4*x" is.
fplot(@(x) x.^3+4*x.^2+1)

Plus de réponses (0)

Catégories

En savoir plus sur Argument Definitions dans Help Center et File Exchange

Tags

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by