Pathhacker

0 118 0
Matlab code for Generation of unit impulse sequence
%---------Generation of unit impulse sequence----------------
clc
clear all
a=input('Enter desired length of the sequence=');
b=input('Enter the sampling =');
x=0:a-1;
y=[cos(2*pi*b*0) zeros(1,a-1)];
stem(x,y);
xlabel('Time index');
ylabel('Amplitude');
disp y;
title('Generation of unit impulse sequence');

Tags

Matlab code for generation of exponential function %--------------exponen_seqence------------------ clc clear all n=1:100 x2=exp(-n); subplot(2,2,3); stem(n,x2); xlabel('n'); ylabel('x2(n)');…
Profile photo of divyasri by divyasri
0 110 0
Matlab code for generation of unit step function %-------------unit step response---------------- clc clear all a=input('Enter the desired length…
Profile photo of divyasri by divyasri
0 130 0
Matlab code for sampling signal %-------sampling------- clc clear all T=0.1;t=0:0.05/200:T; x=cos(200*pi*t); subplot(2,2,1); plot(t,x); title('original input…
Profile photo of divyasri by divyasri
0 82 0
Your nameYour emailYour text

Leave a Reply

Log in
Register
Send message