MATLAB: Generate a 400×400 image of a checkerboard, composed of a grid of 8 squares by 8 squares. The light squares should have gray level 255, and the dark squares should have gray level 0 using for loop

checkerboardforloophomeworkno attempt

You can find guidelines for posting homework on this forum here. If you post your question as an answer and then also accept that answer people are unlikely to even see your question. And as evidenced by the flag by darova, it makes it look like spam to some.

Best Answer

Generate a 400x400 image of a checkerboard, composed of a grid of 8 squares by 8 squares. The light squares should have gray level 255, and the dark squares should have gray level 0 using for loop