Length/Percentage of a line within a polygon square.
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151761/image.png)
Grid lines and blue lines have been plotted as lines. Numbers are labels.
I'd like to calculate the length of each line inside each polygon.
So the line starting at (1,1) goes through the square 1 and square 2 and beyond.
What percentage of the line is inside square 1 and what percentage is in line 2?
Or what is the length of the line inside each square?
Thanks for your time.
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Elementary Polygons dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!