Computation of energy of rectangular pulse
Aim: Computation of energy of rectangular pulse
PC with windows OS.
MATLAB Software
%This Program generates a rectangular pulse and finds its energy
f=input('enter the sampling frequency')
T=1/f;
t=T:T/f:T;
x=zeros(1,length(t));
c=input('enter the duration of the rectangular pulse in terms of number of samples to included')
i=find(t==0);
x(i:i+c1)=0.25;
E=sum(x.*x);
plot(t,x)
xlabel('time')
ylabel('amplitude')
title('Rectangular Pulse width')
grid
disp('Energy of the generated signal measured in joules is')
disp(E)
Result:
enter the sampling frequency100
f = 100
enter the duration of the rectangular pulse in terms of number of samples to included50
c =50
Energy of the generated signal measured in joules is
3.1250
Output:

CreatedFeb 13, 2020

UpdatedFeb 13, 2020

Views53
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