I need to plot this in python.
y=(1-x) ^3 -2.
-1≤ x ≤ 5.(How do I define this range?)

 채택된 답변

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021년 5월 22일

1 개 추천

In MATLAB, you can plot it using:
y=@(x)((1-x).^3-2);
fplot(y, [-1, 5]);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by