|24 Oct 2010||Precedence-based cross-correlograms Calculate cross-correlograms with a wide range of options||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||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||Christopher Hummersone||
y = zeros(size(x)); peaks = localpeaks(x);
|01 Apr 2010||Local Peaks Find local peaks or troughs in a vector||Christopher Hummersone||
I didn't really see the point, if you want the value you can just do for example: