I have used imagesc
in MatLab to plot an acoustic field. I now want to overlay a semi-transparent filled in rectangle at a certain location on the image. Ideally I'd like to be able to do something like the following:
imagesc(g,g,field);
hold on
plotRectangle([100,100,200,200], 'b', 0.5)
hold off
where b is the color of the rectangle 0.5 is the transparency. Can this be done?