How to plot a "Bean-shaped" object in MatLab please? (preferably a parametric equation)
1 view (last 30 days)
Show older comments
Please see the screenshot attached
(This is the general shape that I would like to create in MatLab please, but the shape or equation does not have to be exactly like this one)
If anyone can please help me understand how to create a similar-looking "bean-shaped" equation in MatLab, that would be amazing. Thank you for your help.
- Preferably defined by parametric equations please (I usually define shapes in MatLab parametrically, such as drawing a "cardioid" or "limacon")
- Preferably it is plotted using "surf" (but fsurf or another method also works)
0 Comments
Accepted Answer
Dyuman Joshi
on 11 Oct 2023
Change the equation as per requirement -
a = 3.6;
f = @(x,y) (a*x+x.^2+y.^2).^2 - a^2*y;
fimplicit3(f)
4 Comments
Dyuman Joshi
on 12 Oct 2023
You are welcome!
If my answer solved your problem, please consider accepting the answer.
More Answers (1)
Image Analyst
on 12 Oct 2023
Isn't this a duplicate of your question that I answered here: https://www.mathworks.com/matlabcentral/answers/2032129-how-to-create-this-bean-shape-in-matlab-please#answer_1331159 ??
0 Comments
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!