How can I make the FFT transform from this sine wave with noise code?

1 回表示 (過去 30 日間)
nirma priatama
nirma priatama 2014 年 3 月 11 日
回答済み: Sagie 2014 年 3 月 11 日
Hi, I want to make FFT transform from this sine wave with noise code,
Fs = 8000;
dt = 1/Fs;
StopTime = 0.06;
t = (0:dt:StopTime-dt);
A = 4;
Fc = 60;
snr = 10;
x = A*sin(2*pi*Fc*t);
y = awgn(x,snr);
plot(t,y);
xlabel('time (in seconds)');
title('Signal versus Time');
Anyone could help? Thank You

回答 (1 件)

Sagie
Sagie 2014 年 3 月 11 日

カテゴリ

Help Center および File ExchangeFourier Analysis and Filtering についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by