generate a signal with specific frequency and sampling rate

5 ビュー (過去 30 日間)
ayman daraghmah
ayman daraghmah 2015 年 9 月 19 日
回答済み: Walter Roberson 2015 年 9 月 19 日
I want to generate a one-second discrete signal with three frequencies; 500Hz, 1.5KHz and 3.5KHz and sampling frequency Fs=8KHz .

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 9 月 19 日
Remember, for frequency f the equation is sin(f*t*2*pi) where t is the time in seconds.
Can you figure out how to calculate t for 1 second at a particular sampling frequency? Hint: time t = 1 will be the first point of the second group so you want so-many equally-spaced points before t = 1.

カテゴリ

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