Creating Fourier Analysis Code

1 回表示 (過去 30 日間)
George Rodriguez
George Rodriguez 2020 年 12 月 8 日
回答済み: Swetha Polemoni 2020 年 12 月 17 日
Forthis task, generate some data sampled at 500 Hz. Form a signal containing a) 30 Hzsinusoidal signal with an amplitude of 5
b) 100 Hzsinusoidal signal with an amplitude of 2
c) Zero-mean random noise with a standard deviation of 1. The length of your data shall be 1 second
CODE:
t=0:0.0005:1.0;
y=sin(2*pi*30*t)+sin(2*pi*100*t);
y=y+2*randn(size(t));
title('Random Noise Corrupted Signal');
xlabel('Time(sec)');

回答 (1 件)

Swetha Polemoni
Swetha Polemoni 2020 年 12 月 17 日
Hi George Rodriguez,
It is my understanding that you want to analyze a composite signal i.e., sum of different frequency signals. You can do it using "fft". You may find this answer helpful.

カテゴリ

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