Half-wave rectification with Matlab

To simulate the behavior of the auditory nerve, you have to half-wave rectify your input signal.
If you have used an if statement in Matlab to do this, the following code is for you:

outsig = max( insig, 0 );
This entry was posted in MATLAB and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.