Sign in

username or email:

password:



Not a member?
Forgot your password?

Search matlab



Search tips

Subscribe to matlab



Ads

Discussion Groups

See Also

Embedded SystemsFPGA

Discussion Groups | Matlab DSP | 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] doublefigure, pcolor(data), shading flat;colorbar2) Now I would like to plot maximum value along the column axis, but its lik...

  

Post a new Thread



Is this thread worth a thumbs up?

0

plot on image - Ibrahim muhammed - Aug 24 18:21:11 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





(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )