Code covered by the BSD License  

Highlights from
MIRtoolbox

image thumbnail
from MIRtoolbox by Olivier Lartillot
An innovative environment, on top of Matlab, for music and audio analysis

hwr(x)
function y = hwr(x)
% Half-Wave Rectifier

y = 0.5 * (x + abs(x));

Contact us at files@mathworks.com