HOW TO DIVIDE A AREA WITH X AND Y COORDINATES INTO GRID AND FIND COORDINATES OF THEIR CENTRES POINT?
4 views (last 30 days)
Show older comments
i want to divide a area into n number of parts , and how to get their centre points.
2 Comments
Geoff Hayes
on 29 Nov 2015
ashu - how do you expect to break down the area into n parts? Should each part have the same area? Can the parts be side-by-side or does one follow the other?
Accepted Answer
Walter Roberson
on 29 Nov 2015
For any rectangular area (whether or not it is aligned with the X and Y axes), the center point is at the average of the first and last X value, and average of first and last Y value.
0 Comments
More Answers (0)
See Also
Categories
Find more on Language Fundamentals in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!