Clear Filters
Clear Filters

Draw an array of rectangular boxes

4 views (last 30 days)
Pranjal Pathak
Pranjal Pathak on 21 Nov 2014
Hi,
I need to draw an array of rectangular/square boxes over an array of white spots in the attached figure: img_1 using Matlab code as shown in figure: img_2. I also need to have a control over the dimension of boxes. Like if I have more number of boxes, say 8x8, then I should be able to automatically change my box dimension to 8x8 with all the white spots lying within (centre) of the boxes.
I will be very grateful, if anyone helps me in this regard.
Thanking You!

Answers (0)

Community Treasure Hunt

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

Start Hunting!