Please help!
I need to draw a square fractal (picture) in Matlab. The source shape is a square with side length R = 0. We get the first shape by drawing a square of side = R1 / 2 on each vertex. We get another shape by drawing a square with the side length R2 = R1 / 2 and so on. Each level must have a different color.