> Need help with matlab script?

Need help with matlab script?

Posted at: 2014-12-18 
I am looking at this script which is an impulse response generator however i am quite confused on how it works.

Does it create an fir filter or an iir filter? please justify so i can learn.

the link for the script

http://www.mathworks.com/matlabcentral/fileexchange/5116-room-impulse-response-generator/content/rir.m