SAS Lab Manual 2024
SAS Lab Manual 2024
COLLEGE, BHARUCH
Laboratory Manual
BE Semester – 4th
GOVERNMENT ENGINEERING
COLLEGE, BHARUCH
CERTIFICATE
Date: / / 20__
Institute vision
Impart value based integrative education to empower youth by fostering
innovation and leadership ethos for socio-professional needs.
Institute Mission
1. Strengthen academic infrastructure to achieve excellence in engineering
education.
3. Nurture students by inculcating ethical and professional behavior for their holistic
development.
Department vision
To be recognized by the society to produce innovative and confident engineers
in the field of electronics & communication by quality education.
Department Mission
1. Empower students to become technically competent and socially responsible
citizen.
2. To provide quality technical education among EC graduates leading a successful
path towards industries and research
Program Educational Objectives
PEO 2: Develop professional outwork through leadership skills inculcating ethical &
professional behaviour towards industry and society at large.
Program Outcomes
1. Engineering Knowledge: Apply the knowledge of Mathematics, Science,
Engineering fundamentals, and Mechanical Engineering to the solution of
complex engineering problems.
2. Problem analysis: Identify, formulate, review research literature, and analyze
complex Engineering problems reaching substantiated conclusions using first
principles of mathematics, natural sciences, and Engineering sciences.
3. Design/development of solutions: Design solutions for complex Engineering
problems and design system components or processes that meet the specified
needs with appropriate consideration for the public health and safety, and the
cultural, societal, and environmental considerations.
4. Conduct investigations of complex problems: Use research-based
knowledge and research methods including design of experiments, analysis and
interpretation of data, and synthesis of the information to provide valid
conclusions.
5. Modern tool usage: Create, select, and apply appropriate techniques,
resources, and modern engineering and IT tools including prediction and
modeling to complex Engineering activities with an understanding of the
limitations.
6. The Engineer and society: Apply reasoning informed by the contextual
knowledge to assess societal, health, safety, legal and cultural issues and the
consequent responsibilities relevant to the professional Engineering practice.
7. Environment and sustainability: Understand the impact of the professional
Engineering solutions in societal and environmental contexts, and demonstrate
the knowledge of, and the need for sustainable developments.
8. Ethics: Apply ethical principles and commit to professional ethics and
responsibilities and norms of the Engineering practice.
9. Individual and team work: Function effectively as an individual, and as a
member or leader in diverse teams, and in multidisciplinary settings.
10. Communication: Communicate effectively on complex Engineering activities
with the Engineering Community and with society at large, such as, being able
to comprehend and write effective reports and design documentation, make
effective presentations, and give and receive clear instructions.
11. Project management and finance: Demonstrate knowledge and
understanding of the Engineering and management principles and apply these
to one’s own work, as a member and leader in a team, to manage projects and
in multi- disciplinary environments.
12. Life -long learning: Recognize the need for, and have the preparation and
ability to engage in independent and life- long learning in the broadest context of
technological change.
Lab Objectives
1. Understanding signal characteristics: Students learn to analyze different types of
signals, such as continuous-time signals, discrete-time signals, analog signals, and digital
signals. They become familiar with signal properties like amplitude, frequency, phase, and
time-domain representations.
3. System analysis and characterization: Students study the behaviour of linear time-
invariant (LTI) systems, including concepts like impulse response, frequency response,
transfer function, and system stability. They learn to analyze the response of systems to
different input signals and understand concepts like h t time-domain and frequency-domain
representations. c
u n
h ar tme
B ar
4. Experimental measurements and validation:C Students perform practical experiments to
G E Dep
measure and validate various properties of signals and systems. They learn to collect data and
verify theoretical concepts. EC
Lab Outcomes
1. Understanding of signal properties: Students should be able to describe and analyze
various signal properties, such as amplitude, frequency, phase, and time-domain
representations. They should also understand the differences between continuous-time and
discrete-time signals, as well as analog and digital signals.
6. Critical thinking and problem-solving skills: Through the lab exercises, students should
develop critical thinking and problem-solving skills. They should be able to apply their
knowledge to solve practical problems, identify and troubleshoot issues, and make informed
decisions in the context of signals and systems.
Students Instructions
Before entering the lab, student should carry the following things.
1. Identity card issued by the college
2. Lab Manual
3. Lab Record
Student must sign in and sign out in the register provided when attending the lab
session without fail.
Come to the laboratory in time. Students, who are late more than 15 min., will not be
allowed to attend the lab.
Students need to maintain 100% attendance in lab if not a strict action will be taken.
All students must follow a Dress Code while in the laboratory
Foods, drinks are NOT allowed.
All bags must be left at the indicated place.
The objective of the laboratory is learning. The experiments are designed to illustrate
phenomena in different areas of Signals and u chSystems
t and to expose you to measuring
r men
instruments, conduct the experiments with a interest and an attitude of learning
Bh art
You need to come well prepared for Cthe pexperiment.
GE De
Work quietly and carefully.
EC
Be honest in recording and representing your data.
Students need to write Pre-Lab Questions and Post-Lab questions in Lab record book.
If a particular reading appears wrong repeat the measurement carefully, to get a better
fit for a graph.
All presentations of data, tables and graphs calculations should be neatly and carefully
done.
Graphs should be neatly drawn with pencil. Always label graphs and the axes and
display units.
If you finish early, spend the remaining time to complete the calculations and drawing
graphs. Come equipped with calculator, scales, pencils etc.
Do not fiddle with apparatus. Handle instruments with care. Report any breakage to
the lab in-charge. Return all the equipment you have signed out for the purpose of
your experiment.
u ch nt
ar me
Bh art
C p
GE De
EC
Accuracy in Professional
Active Submission of Total
Punctuality data collection, attitude, behaviour
Participation laboratory file Marks
(2) analysis etc. and safety concerns
(2) and viva (2) (10)
(2) (2)
h Partially
Full Satisfactory = uc nt
Assessment: r satisfactory
e = Not satisfactory = 0
Satisfactory = 2 1.5 ha tm
B ar 1
E C ep
G D
EC
INDEX
u ch nt
5
Understanding of classification of System ar me
Bh art
C p
GE De
6 Understanding of DT convolution of sequencesC
E
10 Understanding of Z transform
11 Understanding of Sampling
12
Understanding of Interpolation
Objectives:
//EXPONENTIAL SIGNAL
t3=0:1:20;
x3=exp(-t3);
subplot(2,3,3);
plot(t3,x3);
xlabel('time');
//SINUSOIDAL SIGNAL
t5=0:0.04:1;
x5=sin(2*%pi*t5);
subplot(2,3,5);
plot(t5,x5);
title('Sinusoidal Signal')
xlabel('time');
ylabel('Amplitude');
//RANDOM SIGNAL
t6=-10:1:20;
x6=rand(1,31);
subplot(2,3,6);
plot(t6,x6);
xlabel('time'); u ch nt
ylabel('Amplitude'); ar me
title('Random signal'); Bh art
C p
GE De
Output Waveform: EC
Quiz:
1) Write usefulness of Step input signal.
Suggested Reference:
1. Signal and Systems By Anand Kumar, 3rd Edition, PHI
2. Signals and Systems by Alan V. Oppenheim, Alan S. Wilsky and Nawab, Prentice Hall
u ch nt
ar me
Bh art
C p
GE De
EC
Objectives:
plot2d3(t1,x1)
xlabel('time');
ylabel('Amplitude');
title('Unit impulse signal');
//EXPONENTIAL SIGNAL
t3=0:1:20;
x3=exp(-t3);
subplot(2,3,3);
plot2d3(t3,x3);
xlabel('time');
//SINUSOIDAL SIGNAL
t5=0:0.04:1;
x5=sin(2*%pi*t5);
subplot(2,3,5);
plot2d3(t5,x5);
title('Sinusoidal Signal')
xlabel('time');
ylabel('Amplitude');
//RANDOM SIGNAL
t6=-10:1:20;
x6=rand(1,31);
subplot(2,3,6);
plot2d3(t6,x6); ch nt
xlabel('time'); u
ar me
ylabel('Amplitude'); Bh art
title('Random signal'); C p
GE De
EC
Output Waveform:
Quiz:
1) Write usefulness of Ramp and Impulse input signals.
u ch nt
ar me
Bh art
C p
GE De
EC
Objectives:
clc;
clear all;
close; u ch nt
ar me
Bh art
//amplification C p
x=input('Enter input sequence x:'); GE De
C
a=input('Enter amplification factor a:');E
b=input('Enter attenuation factor b:');
c=input('Enter amplitude reversal factor c:');
y1=a*x;
y2=b*x;
y3=c*x;
n=length(x);
//Amplification
subplot(2,3,2);
plot2d3(0:n-1,y1);
xlabel('time');
ylabel('Amplitude');
title('Amplified signal');
//Amplitude Reverasl
subplot(2,3,4);
plot2d3(0:n-1,y3);
xlabel('time');
ylabel('Amplitude');
title('Amplitude reversal signal');
u ch nt
ar me
Bh art
C p
GE De
EC
Conclusion:
Quiz:
1) Write usefulness of Folding operation on the input signals.
u ch nt
ar me
Bh art
C p
GE De
EC
Suggested Reference:
1. Signal and Systems By Anand Kumar, 3rd Edition, PHI
2. Signals and Systems by Alan V. Oppenheim, Alan S. Wilsky and Nawab, Prentice Hall
u ch nt
ar me
Bh art
C p
GE De
EC
Objectives:
//////*******************************////////////////////////
clc;
clear all;
close
t = -1:0.1:5;
x1 = 1;
x2 = 2;
x3 = 3-t;
xadd = xa +xb;
xmul = xa.*xb;
subplot(2,3,1);
plot2d3(t,xa) //Plots input signal xa
xlabel('t');
ylabel('Amplitude');
title('input signal xa');
Output Waveform:
u ch nt
ar me
Bh art
C p
GE De
EC
Conclusion:
u ch nt
ar me
Bh art
C p
GE De
EC
u ch nt
ar me
Bh art
C p
GE De
EC
Lab Faculty Sign:
Objectives:
clc;
close;
clear all; u ch nt
t=0:.005:4*%pi; ar me
Bh art
x=sin(t)+cos(t); // Given signal: x(t)=sin(t)+cos(t)
C p
subplot(2,2,1) GE De
plot(t,x) EC
xlabel('t');
ylabel('amplitude')
title('input signal')
y=sin(-t)+cos(-t) // Put t = -t in x(t)
subplot(2,2,2)
plot(t,y)
xlabel('t');
ylabel('amplitude')
title('x(-t)')
z=x+y
subplot(2,2,3)
plot(t,z/2) // to plot even signal
xlabel('t');
ylabel('amplitude')
title('even part of the signal')
p=x-y
subplot(2,2,4)
plot(t,p/2) // to plot odds signal
xlabel('t');
ylabel('amplitude');
title('odd part of the signal');
u ch nt
h ar tme
//Determine the fundamental period of composite B r
// discrete time signal E C epa
G D
// x [ n ] = exp ( j (2*%pi/3)n )+exp ( j (3*%pi/4)n
EC )
clear all;
clc ;
close;
Omega1 = 2* %pi /3; // Angular frequency signal 1
Omega2 = 3* %pi /4; // Angular frequency signal 2
N1 = (2* %pi )/ Omega1 ; // Peirod of signal 1
N2 = (2* %pi )/ Omega2 ; // Period of signal 2
//To find rational period of signal 1
for m1 = 1:100
period = N1*m1;
if( modulo ( period ,1) ==0)
period1 = period ;
integer_value = m1
break ;
end
end
//To find rational period of signal 2
for m2 = 1:100
period = N2*m2;
if( modulo ( period ,1) ==0)
period2 = period ;
Output:
3
8
Conclusion:
h
Suggested Reference:
r uc ent
1. Signal and Systems By Anand Kumar, 3rd Edition,
a PHI m
Bh art
2. Signals and Systems by Alan V. Oppenheim,CAlan
p S. Wilsky and Nawab, Prentice Hall
GE De
References used by the student:
EC
Objectives:
//CAPTION: To find whether the system is linear or non-linear for the given signal
y(n)=[x(n)]^2+B;
clc;
clear all; u ch nt
close; ar me
Bh art
EC ep
//Properties of DT Systems(Linearity) G D
//y(n)=[x(n)]^2+B; EC
y1=x1.^2+B;
y2=x2.^2+B;
rhs=a*y1+b*y2;
x3=a*x1+b*x2;
lhs=x3.^2+B;
subplot(2,2,1);
plot2d3(0:n-1,x1);
xlabel('Time');
ylabel('Amplitude');
title('First input sequence');
subplot(2,2,2);
plot2d3(0:n-1,x2);
if(lhs==rhs)
disp('system is linear');
else
disp('system is non-linear');
end;
Output Waveform:
u ch nt
ar me
Bh art
C p
GE De
EC
clc;
clear all;
close;
// %Properties of DT Systems(Causality)
//%y(n)=x(-n);
Conclusion:
Quiz:
1) Check whether the following systems are linear or not:
a. y(n) = n2 x(n)
b. y(n)= x(n) .Cos (wn)
u ch nt
ar me
Bh art
C p
GE De
EC
u ch nt
ar me
Bh art
C p
GE De Lab Faculty Sign:
EC
Objectives:
clc;
clear all; u ch nt
close ; ar me
Bh art
a=input('Enter the starting point of x[n]=');
C p
GE De
b=input('Enter the starting point of h[n]=');
EC
x=input('Enter the co-efficients of x[n]=');
h=input('Enter the co-efficients of h[n]=');
y=conv(x,h);
subplot(3,1,1);
p=a:(a+length(x)-1);
plot2d3(p,x);
xlabel('Time');
ylabel('Amplitude');
title('INPUT x(n)');
subplot(3,1,2);
q=b:(b+length(h)-1);
plot2d3(q,h);
xlabel('Time');
ylabel('Amplitude');
title('IMPULSE RESPONSE h(n)');
subplot(3,1,3);
n=a+b:length(y)+a+b-1;
plot2d3(n,y);
disp(y)
xlabel('Time');
ylabel('Amplitude');
u ch nt
ar me
Bh art
C p
GE De
EC
Conclusion:
u ch nt
ar me
Bh art
C p
GE De
EC
u ch nt
ar me
Bh art
C p
GE De
EC
Lab Faculty Sign:
Objectives:
Output Waveform:
u ch nt
ar me
Bh art
C p
GE De
EC
Conclusion:
u ch nt
ar me
Bh art
C p
GE De
EC
u ch nt
ar me
Bh art
C p
GE De
EC
Objectives:
Output Waveform:
u ch nt
ar me
Bh art
C p
GE De
EC
Quiz:
u ch nt
ar me
Bh art
C p
GE De and Laplace Transform?
5. What is the relation between Fourier Transform
EC
Objectives:
u ch nt
ar me
Bh art
C p
GE De
EC
Conclusion:
u ch nt
ar me
Bh art
C p
GE De
EC
u ch nt
ar me
Bh art
C p
GE De
EC
u ch nt
ar me
Bh art
C p
GE De
EC
Objectives:
// ROC of x[n]
// Define the range of z values
z_re = linspace(-2, 2, 400); // Real part of z
z_im = linspace(-2, 2, 400); // Imaginary part of z
[X_re, X_im] = meshgrid(z_re, z_im);
Z = X_re + %i*X_im;
Output Waveform:
u ch nt
ar me
Bh art
C p
GE De
EC
Quiz:
u ch nt
ar me
Bh art
C p
GE De
EC
u ch nt
ar me
Bh art
C p
GE De
EC
Objectives:
ts2=0.01;//niq rate
n=0:4;
x_ts2=2*sin(2*%pi*n*ts2/T);
subplot(2,2,3);
plot2d3(n,x_ts2);
title('Equal to Nq');
xlabel('n');
ylabel('x(n)');
Output Waveform:
u ch nt
ar me
Bh art
C p
GE De
EC
Conclusion:
1. Define: Sampling
u ch nt
4. State Sampling theorem. ar me
Bh art
C p
GE De
EC
u ch nt
ar me
Bh art
C p
GE De
EC
Objectives:
subplot(3, 1, 2);
plot(t_samples, x_samples, 'bo', 'MarkerSize', 5); // Plot the discrete-time samples
xlabel('t');
ylabel('x(t)');
title('Sampled Signal x(t)');
subplot(3, 1, 3);
plot(t_reconstructed, x_reconstructed, 'b', 'LineWidth', 2); // Plot the reconstructed signal
Output Waveform:
u ch nt
ar me
Bh art
C p
GE De
EC
Conclusion:
Quiz:
1. Define: Aliasing
3. Define: Interpolation