Generating a noisy signal and analysis

20 ビュー (過去 30 日間)
ereno simone
ereno simone 2012 年 8 月 4 日
Greetings.
I have an assignment about Signals and Systems. I am completely new to MATLAB so i need extreme help on the assignment below.
Generate a noisy signal with sinusoidal components defined at 100 Hz and 300 Hz (3rd Harmonic)
a) Calculate (slow) its time and spectral variation b) Calculate frequency resolution (deltaf) c) Design a low pass filter to remove the 3rd harmonic and check its performance.
I need the code and the graphs to do this assignment. Any help is appreciated. Thank you.
  1 件のコメント
Ryan
Ryan 2012 年 8 月 5 日
What have you tried so far?

サインインしてコメントする。

回答 (1 件)

William
William 2012 年 8 月 5 日
try this:
x = linspace(1,1,1000);
z= randn(1,1000);
y = sin(x)+z;
plot(x,y)
just remove the "z" and you will get a normal sign wave. Add the Z and you will get a sin wave with a normal (Gaussian) distobution with mean 1 added to it.
Hope that helps

カテゴリ

Help Center および File ExchangeSpectral Measurements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by