


















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
This is a lab file of signal system and networking.In this file you will get to know the depth of signals and systems in a proper way
Typology: Thesis
1 / 58
This page cannot be seen from the preview
Don't miss anything!
% Generation of unit impulse function t=-1:0.01:1; A=5; y=A*(t==0); subplot(2,2,1); plot(t,y); xlabel('time'); ylabel('amplitude'); title('unit impluse signal'); subplot(2,2,2); stem(t,y); xlabel('sequence'); ylabel('amplitude'); title('unit impluse sequence'); FOR UNIT-STEP- % Generation of unit step function t1=-10:0.01:10; A=5; y1=(t1>=0); subplot(2,2,3); plot(t1,y1); xlabel('time'); ylabel('amplitude'); title('unit step signal'); subplot(2,2,4); stem(t1,y1); xlabel('sequence'); ylabel('amplitude'); title('unit impluse sequence'); FOR RAMP SIGNAL - % Generation of Ramp Signal t=0:3:50; A=5;
y=At; subplot(2,2,1); plot(t,y); xlabel('time'); ylabel('amplitude'); title('Ramp Signal'); subplot(2,2,2); stem(t,y); xlabel('time'); ylabel('amplitude'); title('Ramp Signal'); SINC FUNCTION- % Generation of Sinc Signal t1=-5:0.01:5; y1=sinc(t1); subplot(2,2,3); plot(t1,y1); xlabel('time'); ylabel('amplitude'); title('Sinc Signal'); subplot(2,2,4); stem(t1,y1); xlabel('time'); ylabel('amplitude'); title('Sinc Signal'); FOR EXPONENTIAL SIGNAL- % Generation of Exponential Signal t=0:0.01:5; A=10; y=exp(A.t); y1=exp(-A.*t); subplot(2,2,1); plot(t,y); xlabel('Time'); ylabel('amplitude'); title('Growing Exponential signal'); subplot(2,2,2); stem(t,y); xlabel('Time'); ylabel('amplitude'); title('Growing Exponential sequence'); subplot(2,2,3); plot(t,y1); xlabel('Time'); ylabel('amplitude'); title('Growing Exponential signal'); subplot(2,2,4); stem(t,y1); xlabel('Time'); ylabel('amplitude'); title('Growing Exponential sequence');
Y(t)=X1(t).X2(t) TIME REVERSAL-
%Scalingofthesignal t=-1:0.01:1; y1=sin(2pi4t); subplot(4,1,1); stem(t,y1); xlabel('Time'); ylabel('Amplitude'); title('InputSignal'); a=0.5; y2=sin(2pi4ta); subplot(4,1,2); stem(t,y2); xlabel('Time'); ylabel('Amplitude'); title('ExpandedSignal'); b=1.5; y3=sin(2pi4t*b); subplot(4,1,3); stem(t,y3); xlabel('Time'); ylabel('Amplitude'); title('CompressedSignal'); FOR TIME REVERSAL- % Time Reversal of the signal n=0:2:40; y=sin(n);
xlabel('time'); ylabel('amplitude'); title('signal-1'); subplot(2,2,2); stem(n,y2); xlabel('time'); ylabel('amplitude'); title('signal-2'); %Addition of signal-1 and signal- 2 y3=y1+y2; subplot(2,2,3); stem(n,y3); xlabel('time'); ylabel('amplitude'); title('addition'); %Multiplication of signal-1 and signal- 2 y4=y1*y2; subplot(2,2,4); stem(n,y4); xlabel('time'); ylabel('amplitude'); title('multiplication'); RESULTS- TIME SHIFTING:- ADDITION AND MULTIPLICATION OF TWO SIGNALS:-
% Linearity of the system y(n)=x(n)^ x0=0; y0=x0^2; if y0== disp('System follows homogenity') %Additivity x1= x2=
x3=x1+x2; y1=x1^ y2=x2^ y3=x3^ z3=y1+y2; if y3==z disp('System is linear') else disp('System is non-linear') end end FOR CASUALITY:- % casuality of y(t)=x(t+2) t=input('enter the value of t:'); a=t+2; if a<=t disp('casual system'); else a>=t disp('non casual system') end FOR STABILITY:- %Stability of the system n=1:1:100; a=2; h=exp(-a.n); subplot(2,1,1); stem(n,h); for k=-10^2:1:10^ y=sum(exp(-a.k)); end b=-2; h=exp(-b.n); subplot(2,1,2); stem(n,h); for k=-10^2:1:10^ y=sum(exp(-a.k)) end RESULT:- LINEARITY:-