Let' say I have the matrix P contain 2D point data(20 points):
1 2 1.5 2 2 2 2.5 2 3 2 3.5 2 4 2 4.5 2 5 2 5.5 2 1 4 1.5 4 2.5 4 3.5 4 4 4 4.5 4 5 4 5.5 4 4.5 3 1.5 3
And, from that data, I can draw the boundary of data. The result is rectangular shape as bellow image:
And then, I want to divide the rectangle into the strip with user-defined width as follow:
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!