Ipcc Manual

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 17

LABORATORY MANUAL

III SEMESTER B.E (E&C)


BSP LAB
CODE: IPCC BSP

NAME : ……………………………………………………..

SEM & SEC : …………………………………………………….

BATCH : …………………………………………………….
KALPATARU INSTITUTE OF TECHNOLOGY
TIPTUR-572201

DEPARTMENT
OF
ELECTRONICS & COMMUNICATION ENGINEERING

DSP LAB MANUAL


Subject Code:18ECL57

FOR V SEMESTER E&C ENGG.,AS PER VTU SYLLABUS

Staff Incharge:

Mr.Lohith B.E., M.Tech.,PhD Mrs.Nandini B.E., M.Tech.,


Asst. Professor, Dept. of ECE Asst. Professor, Dept. of ECE
K.I.T. Tiptur K.I.T. Tiptur
Vision, Mission and Programme Educational Objectives

Vision of the Institute

To bring forth technical graduates of higher caliber with a strong character & to uphold the
spiritual & cultural values of our country.

Mission of the Institute

To impart quality technical & managerial education at graduate & post gradute levels through
our dedicated and well qualified faculty.

Vision of the Department

To contribute towards the development of technology in the Field of electronics and


communication so that [4, 5] mankind can have more benefits from our works and thoughts.

Mission of the Department

M1:To provide excellent education in the field of Electronics and Communication technologies.
M2: To promote scientific and Research attitudes to bring out the best out of our students and
make them excellent engineers.

1.2. State the Program Educational Objectives (PEOs)

To prepare students for graduate and postgraduate programmes and to succeed in a career in
PEO-1 Electronics and Communication Engineering related fields.
To provide students with a foundation in fundamental engineering principles together with in-depth
PEO-2 disciplinary knowledge or solid foundation in mathematical, scientific and engineering
fundamentals required to succeed in technical profession.
To train students with a wide scientific and engineering knowledge so as to comprehend, analyze,
PEO-3 design, and create innovative software products and solutions for the real life problems.
To inculcate in students professional and ethical attitude with a strong character and to uphold the
PEO-4 spiritual and cultural values, effective communication skills, teamwork skills, multidisciplinary
approach, and an ability to relate engineering issues to broader social context.
To provide student with an academic environment aware of advanced technological growth leading
PEO-5 to life-long learning needed for a successful professional career, excellence and leadership.
PROGRAM OUTCOMES

1. Engineering Knowledge: Apply the knowledge of mathematics, science,


engineering fundamentals, and an engineering specialisation to the solution of
complex engineering problems.

2. Problem analysis: Identify, formulate, research literature, and analyse 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
modelling 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 need for sustainable development.

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 multidisciplinary
environments.

12. Life-long learning: Recognise the need for, and have the preparation and ability to
engage in independent and life-long learning in the broadest context of technological
change

Course Outcomes (Course Skill Set)


At the end of the course the student will be able to:
1. Understand the basics of linear Algebra
2. Analyze the different types of linear Algebra
3. Analyze the property of discrete time signals and systems
4. Analyze discrete time signals and system using Z-transforms

CONTENTS
1. a)Program to create and modify a vector (array)
b)Program to create and modify a matrix.
2. Program on basic operation on matrix.
3. Program to solve system of linear equations.
4. Program to Gram-Schmit orthogonalization.
5. Program to find eigen valve and Eigen vector
6. Program to find the singular value decomposition.
7. Programs to generate discrete waveforms.
8. Programs to perform the basic operation of signals.
9. Program to convolution of two given sequences.
10. Program to perform verification of commutative property of convolution.
11. Program to perform verification of distributive property of convolution.
12. Program to perform verification of associative property of convolution.
13. Programs to find Z-transform and inverse Z-transform of a sequence.

a) Program to create and modify a vector (array)

clear
a = [1,2,3,4];
disp(a)
b=5*a
disp(b)

Result:
1. 2. 3. 4.

5. 10. 15. 20.

b) Program to create and modify a matrix.

clear
a = [1,3,5;2,4,6;7,8,10];
disp(a)
b=5*a
disp(b)

Result:
1. 3. 5.
2. 4. 6.
7. 8. 10.

5. 15. 25.
10. 20. 30.
35. 40. 50.

1. Program on basic operation on matrix.


clc;
A=[1,2,3;4,5,6;7,8,9];
B=[2,2,3;1,3,3;1,1,3];
disp(A);
disp(B);
disp(A*B,"The multiplication of Matrix A with B:");
disp(A+B,"The sum of the Matrices A and B:");
disp(A',"The transpose of the matrix A:");
disp(B',"The transpose of the matrix B:");
disp(det(A),"The determinant of A is:");
disp(det(B),"The determinant of B is:");

Result:
1. 2. 3.
4. 5. 6.
7. 8. 9.

2. 2. 3.
1. 3. 3.
1. 1. 3.

The multiplication of Matrix A with B:

7. 11. 18.
19. 29. 45.
31. 47. 72.

The sum of the Matrices A and B:

3. 4. 6.
5. 8. 9.
8. 9. 12.

The transpose of the matrix A:

1. 4. 7.
2. 5. 8.
3. 6. 9.

The transpose of the matrix B:

2. 1. 1.
2. 3. 1.
3. 3. 3.

The determinant of A is:


6.661D-16

The determinant of B is:

6.

2. Program to solve system of linear equations.

clc
a=[1 2 4;2 1 3;1 1 1 ]
b=[15;10;5]
disp(a)
disp(b)
res=inv(a)*b
disp(res)

Result:
1. 2. 4.
2. 1. 3.
1. 1. 1.

15.
10.
5.

0.
2.5
2.5

4 Program to Gram-Schmit orthogonalization

n <- nrow(x)
k <- ncol(x)
u <- matrix(0,nrow=n,ncol=k)
u[,1] <- x[,1]/drop(sqrt(x[,1]%*%x[,1])
i<-i+1
for(i in 2:k) {
u[,i] <-x[,i] - (u[,1:(i-1)]%*%t(u[,1:(i-1)]))%*%x[,i]
u[,i] <-u[,i]/drop(sqrt(u[,i]%*%u[,i]))
}
u1<-u
.

5 Program to find eigen valve and Eigen vector

a=[1 4; 2 3]
b=spec(a)
disp(b,'eigen values are' )
[c,d]=spec(a)
disp(c , 'eigen vector')
disp(d, 'eigen matrix')
Result;
eigen values are

-1.
5.

eigen vector

-0.8944272 -0.7071068
0.4472136 -0.7071068

eigen matrix

-1. 0.
0. 5.

6 Program to find the singular value decomposition


clf;
t = linspace(0,10,50);
vm = 5*squarewave(t);
plot2d3(t,vm)

7 Program to generator discrete sine wave

a) clc
f=0.2
t=0:0.1:10
x=cos(2*%pi*t*f)
plot(t,x)
plot2d3(t,x)
xlabel('time')
ylabel('amplitude')
title('sine wave')

Result:
b) Program to generate a square wave
clc
t=linspace(0,10,50)
vm=5*squarewave(t)
plot(t,vm)
plot2d3(t,vm)
c) Programe tp genetare triangular wave
clc
a=8
t=0:(%pi /4):(4* %pi)
y=a*sin(2*t)
plot(t,y)
xlabel('time')
ylabel('amplitue')
title('triangular wave')

Result:

8) program to perform basic operation on signal


clc ;
clf ;
clear all;
t =0:0.1:30
x1 =sin (2* %pi * t /9) ;
x2 =sin (2* %pi * t /2) ;
x3 = x1 + x2 ;
subplot (1 ,3 ,1) ;
plot (t , x1 ) ;
title ( ' sinewave1 ' );
xlabel ( ' t ' ) ;
ylabel ( ' x1 ( t ) ' ) ;
subplot (1 ,3 ,2) ;
plot (t , x2 ) ;
title ( ' sinewave2 ' ) ;
xlabel ( ' t ' ) ;
ylabel ( ' x2 ( t ) ' ) ;
subplot (1 ,3 ,3) ;
plot (t , x3 ) ;
title ( ' addition of 2 signals ' ) ;
xlabel ( ' t ' ) ;
ylabel ( ' x3 ( t ) ' ) ;

Result:

9 Program to convolution of two given sequences

clc
clear
a=1:4
b=[2 1 1 2]
n1=length(a)
n2=length(b)
y=convol(a,b)
disp(y)
N=0:1:n1+n2-2
N1=0:1:n1-1
N2=0:1:n2-1
subplot(3,1,1)
plot2d3(N1,a)
xlabel('time')
ylabel('amplitude')
title('value of a')
subplot(3,1,2)
plot2d3(N2,b)
xlabel('time')
ylabel('amplitude')
title('value of b')
subplot(3,1,3)
plot2d3(N,y)
xlabel('time')
ylabel('amplitude')
title('convolution of two signals')
8) Program for property of convolution
clc
a=[1 2 3 4]
b=[2 1 1 2]
c=[1 1 1 1]
//distrubutive law
y1 = convol(a,(b+c))
disp(y1)
y2 = convol(a,b)+convol(a,c)
disp(y2)
if y1==y2
disp('disturbutive law satisfy')
else
disp('disturbutive not satisfy')

end
//associative law
y3=convol(convol(a,b),c)
disp(y3)
y4=convol(a,convol(b,c))
disp(y4)
if y3==y4
disp('associative law satisfied')
else
disp('associative law not satisfied')
end
//commutative law
y5=convol(a,b)
disp(y5)
y6=convol(b,a)
disp(y6)
if y5==y6
disp('commutative law satisfied')
else
disp('commutative law not satisfied')
end
Result:
3. 8. 15. 25. 20. 17. 12.

3. 8. 15. 25. 20. 17. 12.

disturbutive satisfy

2. 7. 16. 31. 40. 45. 44. 29. 18. 8.


2. 7. 16. 31. 40. 45. 44. 29. 18. 8.

associative law satisfied

2. 5. 9. 15. 11. 10. 8.

2. 5. 9. 15. 11. 10. 8.

commutative law satisfied

11.Program to compute the step response from the given impulse respons

t=0:4;
y=ones(1,5);
subplot(2,1,1);
plot2d3 (t,y);
xlabel('time');
ylabel('amplitude');
title('Unit Step Discrete Signal');
subplot(2,1,2);
plot(t,y);
xlabel('time');
ylabel('amplitude');
title('Unit Step Continuous Signal');

You might also like