Computation of Average Power
Aim: Computation of Average Power
Equipments:
PC with windows OS.
MATLAB Software
This program generates a Periodic sinusoidal signal and computes its average power
f=input('enter the frequency of the signal');
i=input('enter the no.of cycles to be plotted')
T=i/f;
t=0:T/f:T;
x=sin(2*pi*f*t);
y=input('enter the number of cycles(<=i) over which average power is to be computed')
z=(length(t)1)/i;
x1=abs(x);
x2=x1.*x1;
p=(1/(y*z))*sum(x2(1:y*z));
plot(t,x)
title('sinusoidal signal')
xlabel('time')
ylabel('amplitude')
disp('The average power of the generated signal measured in watts is ')
disp(p)
Result:
enter the frequency of the signal100
enter the no.of cycles to be plotted2
i =2
enter the number of cycles(<=i) over which average power is to be computed2
y =2
The average power of the generated signal measured in watts is
0.5000
Output:

CreatedFeb 13, 2020

UpdatedFeb 13, 2020

Views140
Introduction
Basic operations on Matrices
Genaration of various signals and sequences
Operations on signals and sequences
Finding the even and odd parts of signal/sequence and real and imaginary parts of signal
Verification of Linearity and time invariance properties of a given continuous/discrete system
Linear Convolution
Auto correlation and cross correlation between signals and sequences
Computation of unit sample, unit step and sinusoidal response of the given LTI system and verifying its physical reliability and stability properties
GIBBS phenomenon
Sampling theorem verification
Finding the Fourier transform of a given signal and plotting its magnitude and phase spectrum
Laplace Transforms
Locating the zeros and poles and plotting the pole zero maps in zplane for the given transfer function
Gaussian Noise
Verification of Wiener Khinchin relation
Removal of noise by autocorrelation/crosscorrelation
Extraction of Periodic signal masked by noise using correlation.
Checking a Random process for stationarity in wide sense
To find a mean and variance of a discrete random variable
To find a moment generating function of a discrete random variable
Computation of Energy of sinusoidal signal
Computation of energy of rectangular pulse
Computation of Average Power
Waveform Synthesis
Find and plot the cumulative distribution and probability density functions of a random variable
Verification of central limit theorem