HOW TO DIVIDE A AREA WITH X AND Y COORDINATES INTO GRID AND FIND COORDINATES OF THEIR CENTRES POINT?

i want to divide a area into n number of parts , and how to get their centre points.

2 Comments

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?
yes, but if the area is of irregular shape there may be some smaller parts also.

Sign in to comment.

 Accepted Answer

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.

More Answers (0)

Products

Asked:

on 29 Nov 2015

Commented:

on 29 Nov 2015

Community Treasure Hunt

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

Start Hunting!