Assignment 3
Assignment 3
ASSIGNMENT NO:3
The MATLAB code for plotting and performing the filtering is attached.
Please refer next page.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% MATLAB CODE TO DRAW SIGNAL, AUTO CORRELATION AND FILTERING %
% OF NOISY SIGNAL %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clc;
close all;
clear;
1
xlabel('\tau');
ylabel('R(\tau)');
title('Sine wave Autocorrelation');
2
figure(1);
subplot(3,2,5);
plot(t,noise_doppler,'r'); % Noisy Doppler signal plot
hold on;
plot([-5 5],[0 0],'k'); % drawing the x axis
xlim([-5 5]); % x axis limits
ylim([-1.4*A 1.4*A]); % y axis limits
xlabel('Time, t');
ylabel('X(t)');
title('Noisy Doppler signal');
3
% Plotting of the Noisy doppler signal
subplot(2,1,1);
plot(t,noise_doppler,'r'); % Noisy Doppler signal plot
hold on;
plot([-5 5],[0 0],'k'); % drawing the x axis
xlim([-5 5]); % x axis limits
ylim([-1.4*A 1.4*A]); % y axis limits
xlabel('Time, t');
ylabel('X(t)');
title('Noisy Doppler signal');