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

4 views (last 30 days)
i want to divide a area into n number of parts , and how to get their centre points.
  2 Comments
Geoff Hayes
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?

Sign in to comment.

Accepted Answer

Walter Roberson
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.

More Answers (0)

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!