help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

peaks and valleys plot


From: Rick T
Subject: peaks and valleys plot
Date: Fri, 30 Dec 2011 14:08:47 -1000

Greetings All

I'm trying to have the x value and y value next to the peak and valley on a plot can someone assist

t= linspace(0,2*pi,8000);
freq=10;
y=sin(t*freq)+cos(t*freq*1.3);
y=y';
y2=y*3+y*4+y*2;
yf=(y2(:,1)/max(abs(y2(:,1)))*1); %keep at 1, amplitude levels
plot(yf)

--


reply via email to

[Prev in Thread] Current Thread [Next in Thread]