Sign in

username or email:

password:



Not a member?
Forgot your password?

Search matlab



Search tips

Subscribe to matlab





Discussion Groups

See Also

Embedded SystemsFPGA

Discussion Groups | Matlab DSP | Re: plot on image

I got it!hold on, plot (I,'r'), Done!Ibra________________________________From: Ibrahim muhammed To: matlab yahoogroups Sent: Sun, August 22, 2010 3:28:01 PMSubject: plot on imageHi guys,I'm really stuck on plotting a line on an image...

  

Post a new Thread



Is this thread worth a thumbs up?

0

Re: plot on image - Ibrahim muhammed - Aug 24 18:18:21 2010

I got it!

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

Ibra

________________________________
From: Ibrahim muhammed <b...@yahoo.com>
To: matlab yahoogroups <m...@yahoogroups.com>
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
      
______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



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