DSPRelated.com
Forums

plot on image

Started by Ibrahim muhammed August 24, 2010
Hi guys,

I'm really stuck on plotting a line on an image. Any help will be highly
appreciated!

1) data=[72 x 154] double

figure, pcolor(data), shading flat;colorbar

2) Now I would like to plot maximum value along the column axis, but its like
'hold on' doesn't work for me, or is it my indexing?

I did

[c,I]=max(data);

hold on, plot (c,'r'); ---------didn't work
hold on, plot(data(I),'r'), ---------didn't work either

any idea on how to overcome this?

Cheers,

Ibra