Borrar filtros
Borrar filtros

Plotting mathematical functions in matplot

5 visualizaciones (últimos 30 días)
Himanshu Sinha
Himanshu Sinha el 22 de Mayo de 2021
Respondida: Sulaymon Eshkabilov el 22 de Mayo de 2021
I need to plot this in python.
y=(1-x) ^3 -2.
-1≤ x ≤ 5.(How do I define this range?)

Respuesta aceptada

Sulaymon Eshkabilov
Sulaymon Eshkabilov el 22 de Mayo de 2021
In MATLAB, you can plot it using:
y=@(x)((1-x).^3-2);
fplot(y, [-1, 5]);

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by