Draw an array of rectangular boxes

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!

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeImages についてさらに検索

質問済み:

2014 年 11 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by