Uploaded by rao411421

ENA Lab-1

advertisement
National University of Science and Technology
School of Electrical Engineering and Computer Science
Department of Electrical Engineering
Faculty Member: Muhammad Ali Khalid
Lab Engineer: Muhammad Ali Khalid
Semester: Spring23
Dated: 08-Feb-23
Section: BEE-14-B
EE-211 Electrical Network Analysis
Lab # 1: MATLAB Introduction
Viva + Lab
Performance
(Individual)
Name
Reg. No
M. Abubakr Hashim
411421
Abdul Rafay
428393
Hasnain
406470
M. Arbaaz Alam
411425
5+5 Marks
Analysis of
data in Lab
Report
5 Marks
Teamwork
Total
5 Marks
20 Marks
Objectives:
In this lab, we learn:
• The interface of MATLAB
• Basic arithmetic operators
• MATLAB variables
• Matrix manipulation
Introduction:
MATLAB (stands for Matrix Laboratory), it integrates computation, visualization, and
programming in an easy-to-use environment, where problems and solutions are expressed in
familiar mathematical notation.
Software: MATLAB
Task 1: Creating Matrix
Task 2: Row Matrix
Task 3: Column Matrix:
Task 4: Extracting Matrix
1. Column Matrix
2. Row Matrix
Task 5: Concatenation
Task 6: Scalar Addition
Task 7: Scalar Subtraction
Task 8: Scalar Multiplication
Task 9: Scalar Division
Task 10: Determinant
Task 11: Inverse
Task 12: Transpose
Task 13: Minimum Element
Task 14: Maximum Element
Task 15: Bitwise Squaring
Task 16: Sums of Columns
Task 17: Bitwise Multiplication
Task 18: Matrix Division
1. Right Division
2. Left Division
Task 19: Zeros
Task 20: Ones
Task 21: Identity
Task 22: Sine Wave
Task 23: Square Wave
Task 24: Triangle Wave
Conclusion:
In this lab we learnt how to perform basic matrix operations on MATLAB. MATLAB is very
easy to use and learn. Its code is optimized to be relatively quick when performing matrix
operations. MATLAB is interpreted and errors are easier to fix. It is fundamental for an
Electrical Engineer to learn it and optimize his work.
Download