EXPERIMENT - 9
AIM
To plot Continuous and Discrete Random Noise Function in MATLAB.
THEORY
In electronics, noise is a random fluctuation in an electrical signal, a characteristic of all electronic circuits. Noise generated by electronic devices varies greatly, as it can be produced by several different effects.
In communication systems, noise is an error or undesired random disturbance of a useful information signal in a communication channel. The noise is a summation of unwanted or disturbing energy from natural and sometimes man-made sources.
MATLAB COMMANDS USED
* plot(x,y,color,properties)
* rand(t);
* stem(x)
MATLAB CODE
%The Code is for Random wave
t=-10:0.1:10;
y=rand(size(t));
subplot(2,1,1);
plot(t,y,'b');
xlabel('time in seconds');
ylabel('y(t)');
title('Plot of continuous Random Noise ');
%Discrete dirac delta ramp
n = -20:1:20;
y_n= rand(size(n));
subplot(2,1,2);
stem(n,y_n,'b','filled');
xlabel('n i.e. Sample number');
ylabel('y(n)');
title('Plot of discrete Random noise with 41 samples');
print('Random Noise','-dpng')
RESULT
The Continuous and Discrete versions of Random Noise has been plotted.