How to find the decay rate of a decaying signal ?
10 ビュー (過去 30 日間)
古いコメントを表示
I have a sinusoidal sognal which decays exponentially in time. I would like to find the decay rate of the signal.
0 件のコメント
回答 (1 件)
Star Strider
2016 年 5 月 6 日
If it’s a simple exponential, this works:
t = linspace(0, 1, 250);
y = exp(-2*t) .* sin(50*pi*t);
env = abs(hilbert(y)); % Calculate Envelope
b = polyfit(t, log(env), 1); % Linear Regresson On Log-Transformed Data
figure(1)
plot(t, y)
hold on
plot(t, env, '-r')
hold off
grid
text(0.5, 0.75, sprintf('Decay Rate = %.3f', b(1)))
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Spectral Measurements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!