Plotting mathematical functions in matplot
1 view (last 30 days)
Show older comments
Himanshu Sinha
on 22 May 2021
Answered: Sulaymon Eshkabilov
on 22 May 2021
I need to plot this in python.
y=(1-x) ^3 -2.
-1≤ x ≤ 5.(How do I define this range?)
0 Comments
Accepted Answer
Sulaymon Eshkabilov
on 22 May 2021
In MATLAB, you can plot it using:
y=@(x)((1-x).^3-2);
fplot(y, [-1, 5]);
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!