How to change imellipse to include theta?
Mostra commenti meno recenti
Is there a way to hack imellipse such that I can draw an ellipse and then change the angle so that major and minor axes do not just lie on the x and y axes?
I'm currently "brute forcing" it but I was wondering if anyone knows of an easier way.
Risposta accettata
Più risposte (1)
Walter Roberson
il 6 Gen 2012
0 voti
No, you cannot do that, or at least not without re-parenting against imroi instead of imrect and re-doing a number of functions.
The current implementation mirrors the rectangle() function, which can create ellipses that are aligned with the axes but not tilted ones.
You could possibly parent the imellipse against an hgtransform and set the transformation matrix to do the rotation, but I think that might encounter some difficulties in (e.g.) resizing the ellipse.
1 Commento
Anathea Pepperl
il 7 Gen 2012
Categorie
Scopri di più su Environment and Settings in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!