フィルターのクリア

Create sine wave with noise within 10-20 Hz

1 回表示 (過去 30 日間)
Eric
Eric 2018 年 2 月 3 日
回答済み: Walter Roberson 2018 年 2 月 3 日
Hi everyone,
I would like to create a sine wave with noise within a narrow spectrum (10-20 Hz). Is it possible to create a sine wave with random frequencies between 10-20 Hz?
Thanks a lot in advance,
Eric

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 2 月 3 日
Construct a vector of coefficients in complex conjugate pairs, in an arrangement similar to
[0, zeros(1,N), A B C D, zeros(1,M), zeros(1,M), D' C' B' A' zeros(1,N)]
here the A B C D are the coefficients that will be used for the random noise in 10-20 Hz range. Use an appropriate number of coefficients according to your desired frequency resolution. Notice that the exact same coefficients must appear at the end but in reverse order and in their complex conjugate (random complex values for these are fine as long as the end of the vector has them in reverse order and complex conjugate of the originals.)
Now when you ifft() that vector, it will be the noise signal to add to your sine wave.

カテゴリ

Help Center および File ExchangeCorrelation and Convolution についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by