MATLAB: How to store rectangles properly

matlab graphicsrectangle

I want to make a series of rectangles using rectangle command. What is the best way to store all of these rectangles?

Best Answer

I would use the savefig (link) function.