Search Comments and Ratings

go

   
Date File Comment by Comment Rating
24 Oct 2010 Precedence-based cross-correlograms Calculate cross-correlograms with a wide range of options Author: Christopher Hummersone Christopher Hummersone

whoops, you'll need this file: http://www.mathworks.com/matlabcentral/fileexchange/27140-check-whether-mex-file-is-compiled-for-system

Comment only
01 Jun 2010 Local Peaks Find local peaks or troughs in a vector Author: Christopher Hummersone Christopher Hummersone

Thanks for your comment Christos, I hadn't noticed this behaviour (I had been using it with long signals). I have fixed the function to address your first remark, and the code will now correctly identify peaks and troughs in a vector like [0 5 -5 5 0] with the 'both' option. I have not addressed your second comment since, as you alluded to, this is a plateaux and not a true peak.

Comment only
28 Apr 2010 Local Peaks Find local peaks or troughs in a vector Author: Christopher Hummersone Christopher Hummersone

or rather,

y = zeros(size(x)); peaks = localpeaks(x);
y(peaks) = x(peaks);

Comment only
01 Apr 2010 Local Peaks Find local peaks or troughs in a vector Author: Christopher Hummersone Christopher Hummersone

I didn't really see the point, if you want the value you can just do for example:
y = x(localpeaks(x));

Comment only

Contact us