Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Cormerstone Design Lab Spring 2016 Electrical Engineering Department Kuwait Univ

ID: 2248818 • Letter: C

Question

Cormerstone Design Lab Spring 2016 Electrical Engineering Department Kuwait University EE297L Quiz-I -1 2 o I. LetA 2 55 B-2 C 115-31.D-1+13 .E-2+14 (15 pts) Check if the following calculations are possible in MATLAB. if yes, write down the result and if no, write down the reason a) A+3 b) A+B.C c) Inverse of A d) Inverse of B.C e) Inverse of A B 0 Determinant of A g) Determinant of B.C h) Transpose of A Transpose of A B i) j) Magnitude and angle of D k) D/E D Extract the real and imaginary parts of E m) B'2 and B. 2 n) B. A o) Extract the matrix Ai 4 -2

Explanation / Answer

(a)

A+3

ans =

2 5 3
5 8 8
9 7 1

(b)

A+B*C

ans =

0 7 -3
4 15 -1
9 19 -11

(C)

inv(A)

ans =

-0.3061 0.0408 0.1020
0.3469 0.0204 0.0510
-0.2245 0.1633 -0.0918

(e)

(inv(A))*B

ans =

0.0816
0.5408
-0.1735

(f)

det(A)

ans =

98.0000

(d)not possible because for inverse operation matrix must be square

(g)determinant of B not possible because B is not a square matrix.

(h)

A'

ans =

-1 2 6
2 5 4
0 5 -2

(i)

A'*B

ans =

21
24
4

(j)

abs(D)

ans =

3.1623

>> angle(D)

ans =

1.2490

(k)

D/E

ans =

0.5000 - 0.5000i

(l)

real(E)

ans =

-2

imag(E)

ans =

4

(m)B^2 not posible because B is not a square matrix.

B.^2

ans =

1
4
9

(o)

A(2:3,2:3)

ans =

5 5
4 -2

(m)B.*A not possible because for point to point multiplication dimension of both matrix must be same but here dimension of A notequal to dimension of B

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote