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

1 次查看(过去 30 天)
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)

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Argument Definitions 的更多信息

标签

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by