Rank: 380991 based on 0 downloads (last 30 days) and 0 file submitted
photo

Christopher Hummersone

E-mail
Company/University
University of Surrey
Lat/Long
51.2435417175293, -0.58967798948288

Personal Profile:
Professional Interests:
Audio Signal Processing

 

Watch this Author's files

 

Comments and Ratings by Christopher View all
Updated File Comments Rating
24 Oct 2010 Precedence-based cross-correlograms Calculate cross-correlograms with a wide range of options Author: Christopher Hummersone

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

01 Jun 2010 Local Peaks Find local peaks or troughs in a vector Author: 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.

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

or rather,

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

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

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

Contact us