Azzera filtri
Azzera filtri

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

1 visualizzazione (ultimi 30 giorni)
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)

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Argument Definitions in Help Center e File Exchange

Tag

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by