concept-collection / sample-6
sample-6 / damped_wave.m
4 lines · 131 BCodeBlameHistory
0a4fb76Initial 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