Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
Cassandra Meyer
Cassandra Meyer el 28 de En. de 2022
Comentada: Cassandra Meyer el 28 de En. de 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)

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Argument Definitions en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by