EEE 322, Power System I Lab
Experiment 2

Formation And Solution of Matrix Algebra with MATLAB

Student ID: EEE 0X6X5 X4X3X2X1X0

For Example, ID EEE 047 06779 has X1 =7 and X0 =9


Q. 1. Enter the matrices below in MATLAB. They will be used in the next several examples.

Ans. My Student ID: EEE 068 07651; So, X1 = 5 & X0 = 1.

MATLAB Coding:


Q. 2. Determine the transpose of B and denote it as C.

Ans. Determination of transpose matrix:

MATLAB Coding:


Q. 3. Determine the sum of A and C and denote it as D.

Ans. Determination of sum of A & C matrix:

MATLAB Coding: 



Q. 4. Determine the product of A and B with A first.

Ans. Multiplication of A & B matrix:

MATLAB Coding:


Q. 5. Determine the product of B and A with B first.

Ans. Multiplication of B and A matrix:

MATLAB Coding:


Q. 6. Determine the array product of A and C and denote it as E.

Ans. Determination of the array production:

MATLAB Coding:



Q. 7. Determine the determinant of the following matrix and denote it as p.

Ans. Determining the determinant:

MATLAB Coding:



Q. 8. Determine the inverse matrix of P and denote it as Ainv.

Ans. Determining the inverse matrix:

MATLAB Coding:



Q. 9. Use MATLAB to solve the simultaneous equations below.

Ans. Simultaneous equation solving:

MATLAB Coding: