I have images say I1 and I2 in matrix form say I make a subplots to have them both in same figure. now I have to draw few rectangle on top of these images. how can I draw a rectangle in a specific subplot?
%this draws rectangle on top of I1
imshow(I1, [])rectangle('Position',[x,y,w,h])%somewhere else after the above code
%this draws the rectangle on top of I2
imshoe(I2, [])rectangle('Position',[x,y,w,h])
now I want to draw rectangles on top of I1 what should I do?
Best Answer