exp.sweep and impulse response

Version 1.0.0.0 (1.4 KB) by Matthes
generate exp. sine sweep and calculate impulse response and distortion
2.4K Downloads
Updated 14 Apr 2008

No License

[sweep,invsweep]=expsweep(T,f1,f2,silence,fs)
generate sine sweep with exponential frequency dependent energy decay
over time and time/frequency inverse for impulse response calculation
inputs:
T = sweep duration in seconds
f1 = start frequency in Hz
f2 = end frequency in Hz
silence = silence before and after sweep in seconds (default: 0)
fs = sampling frequency (default: 44100)

[h,h_dist]=sweepIR(rec,Nimp,T,f1,f2,offset,fs)
calculate impulse response and distortion from exponential sweep recording
inputs:
rec = mono sweep recording
T = sweep duration in seconds
f1 = start frequency in Hz
f2 = end frequency in Hz
offset = offset length before impulse response in samples
outputs:
h = impulse response
h_dist = impulse responses of the first 6 nonlinear distortion harmonics

Cite As

Matthes (2024). exp.sweep and impulse response (https://www.mathworks.com/matlabcentral/fileexchange/19566-exp-sweep-and-impulse-response), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0