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

1 view (last 30 days)
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)

Accepted Answer

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

More Answers (0)

Categories

Find more on Argument Definitions in Help Center and File Exchange

Tags

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!