Updated matlab file to output impulse response.