noise and filter plase help me !!!

the four sinusoidal signal are as follows: main signal has a frequency of f and amplitude A
AND noise signal has a low frequency f 5% to 15% of f and amplitude 15% of A
AND noise signal has a high frequency f 18 to 23 times of f and amplitude 25% of A
AND noise signal has a high frequency f 40 to 43 times of f and amplitude 13% of A
calculat signal to noise ratio for each noise signal.
plot each signal with time with suitable sampling time.
plot the summed signal(generated signal)with time with suitable sampling time.
add random noise signal with amplitude of 18%to 23%of A
PLOT the generated signal after adding the random noise signal.
use fourier transform and power spectrum density to obtain the generated signal in the freq. domain,and then find the freq. and amplitude of each signal from the freq.domain
I work this function
%%% parameters to construct signal
t=(0:0.01:20);
ampl= 0.19;
freq = 0.09;
%% construct signal
x=ampl*sin(2*pi*0.09);
y=fft(x);
m=abs(y);
%% Plot
m
and now ..........................................................how solve pleas
%% construct main signal with A=5 AND f= 1
t=1:0.01:5;
ampl=5;
freq= 1;
sig=ampl*sin(2*pi*freq*t);
figure
plot(sig,'r')
title('the signal in time Domain');
grid on;
xlabel('time')
ylabel('Amplitude')
%% construct noise signal withlow frq. A=5*18%=0.9 AND f= 1*10%=0.1
t=1:0.01:5;
ampl=0.9;
freq= 0.1;
sig=ampl*sin(2*pi*freq*t);
figure
plot(sig,'r')
title('the signal in time Domain');
grid on;
xlabel('time')
ylabel('Amplitude')%% construct main signal with A=5 AND f= 1
t=1:0.01:5;
ampl=5;
freq= 1;
sig=ampl*sin(2*pi*freq*t);
figure
plot(sig,'r')
title('the signal in time Domain');
grid on;
xlabel('time')
ylabel('Amplitude')
%% construct main signal with A=5 AND f= 1
t=1:0.01:5;
ampl=5;
freq= 1;
sig=ampl*sin(2*pi*freq*t);
figure
plot(sig,'r')
title('the signal in time Domain');
grid on;
xlabel('time')
ylabel('Amplitude')
%% construct main signal with A=5 AND f= 1
t=1:0.01:5;
ampl=5;
freq= 1;
sig=ampl*sin(2*pi*freq*t);
figure
plot(sig,'r')
title('the signal in time Domain');
grid on;
xlabel('time')
ylabel('Amplitude')

2 Comments

What have you tried so far and what is your question?
this equation

Sign in to comment.

Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Asked:

on 26 Oct 2022

Edited:

on 26 Oct 2022

Community Treasure Hunt

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

Start Hunting!