From: Ross on
Hello all,

I have a shape defined using the rectangle command

>> rectangle('Position',[0 0 51 30],'Curvature',0.8,'FaceColor','k')

with the ultimate goal of being able to create a BW mask with this shape centered in a 128x128 blank image. The 'Position' vector doesn't help much given that the positions are normalized relative to the entire figure window and not the image itself.

Is there a way I can preserve this shape but actually find the row/col index of the 'filled' rectangle within the image itself and not the figure window?

Cheers,
R