Reply by Ibrahim muhammed August 24, 20102010-08-24
I got it!

hold on, plot (I,'r'), Done!

Ibra

________________________________
From: Ibrahim muhammed
To: matlab yahoogroups
Sent: Sun, August 22, 2010 3:28:01 PM
Subject: plot on image
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