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