This function takes an audio vector and a constant as inputs. The output is the input audio vector but with a distortion effect added to it. The effect is much like that of an overdriven guitar amplifier. GDIST.m also works well with many other instruments and sound.
For instructions on how to use this function, put GDIST.m in your MATLAB work folder and type "help gdist" at the MATLAB command prompt.