concept-collection / sample-4
sample-4 / damped_wave.m
4 lines · 131 BBlameHistoryRaw
1function y = damped_wave(t, f, tau)
2% DAMPED_WAVE Exponentially decaying sine wave.
3y = exp(-t / tau) .* sin(2 * pi * f * t);
4end