How to generate an ellipse using the insertShape Function?

8 ビュー (過去 30 日間)
Trenton Saunders
Trenton Saunders 2020 年 6 月 25 日
回答済み: Birju Patel 2025 年 7 月 10 日
Does matlab have a preprogramed position generater for an 'ellipse', using insertShape ? Like it does for 'circle', 'rectangle', etc (shown in the image below). I only saw a few shapes listed on the Help Center page and I was wondering if there is more?
I am trying to avoid the brute force of using 'polygon' with points pulled from the analytical function for the ellipse. It would be much more convient and efficient if I could use a preprogrammed position generator for an ellipse, where I enter centroid, major axis, minor axis, etc.
Thanks for the help!

回答 (2 件)

Aditya Patil
Aditya Patil 2020 年 7 月 14 日
This feature is not available as of now. You can create an ellipse by approximating the polygon.

Birju Patel
Birju Patel 2025 年 7 月 10 日
Support for drawing an ellipsed is available in R2024b: https://www.mathworks.com/help/vision/ref/insertshape.html

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by