Filter löschen
Filter löschen

Predetermine impoly polygon vertices

2 Ansichten (letzte 30 Tage)
dan kin
dan kin am 19 Okt. 2017
Beantwortet: Cam Salzberger am 19 Okt. 2017
Is it possibly to predetermine how much points/number of vertices I can click using impoly?

Akzeptierte Antwort

Cam Salzberger
Cam Salzberger am 19 Okt. 2017
Hello Dan,
Using impoly in interactive mode does not allow for you to limit the user to a certain number of datapoints. If you know that you want an aligned rectangle, you could use imrect, but I'm guessing that's not what you're looking for.
You could make your own function relatively simply using ginput, which does allow you to put a limit on the number of clicks. Or you call it in a loop and draw lines between the points in between each click.
-Cam

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by