Hi All,
Please can you assist me in checking my work. I have done the below questions in Matlab 6.5. I have attempted the first question but am not certain of my answer. Please can you also show me how to do the second part of the question (b). I do not understand what they mean by Zero Mean.
Thank you.
function [] = Question1a()
% ---------------------------------------------------------------
% Question 1a
% ---------------------------------------------------------------
datapoint = 1000;
t=0:1/datapoint:2;
x=sin(2*pi*5*t);
y=sin(2*pi*25*t);
z= x + y;
NoiseAmplitude = 1;
Noise = x + NoiseAmplitude*randn(size(z));
plot(t,Noise);
title('Noise in the Amplitude interval (0,0,1,0)')
ylabel ('Amplitude')
xlabel ('Time(s)')
Please can you assist me in checking my work. I have done the below questions in Matlab 6.5. I have attempted the first question but am not certain of my answer. Please can you also show me how to do the second part of the question (b). I do not understand what they mean by Zero Mean.
Thank you.
function [] = Question1a()
% ---------------------------------------------------------------
% Question 1a
% ---------------------------------------------------------------
datapoint = 1000;
t=0:1/datapoint:2;
x=sin(2*pi*5*t);
y=sin(2*pi*25*t);
z= x + y;
NoiseAmplitude = 1;
Noise = x + NoiseAmplitude*randn(size(z));
plot(t,Noise);
title('Noise in the Amplitude interval (0,0,1,0)')
ylabel ('Amplitude')
xlabel ('Time(s)')
Attachments
-
6.7 KB Views: 3