Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

P.

Paderes Street, Sampaloc, Manila 1015

Laboratory Activity

1
Midterms
Feedback and Control Systems

Submitted to:
Engr. Joey P. Sarmiento

Submitted by:
Monsalud, Robert Russell N.

December 11, 2018


12/11/18 12:43 PM C:\Users\2...\Monsalud_exercise1_la1.m 1 of 1

A = [ 3 2*pi ; 5j (10 + sqrt(2)*j) ]


B = [ 7j -15j ; 2*pi 18 ]

A + B
A*B
B-1
MATLAB Command Window Page 1

>> Monsalud_exercise1_la1

A =

3.0000 + 0.0000i 6.2832 + 0.0000i


0.0000 + 5.0000i 10.0000 + 1.4142i

B =

0.0000 + 7.0000i 0.0000 -15.0000i


6.2832 + 0.0000i 18.0000 + 0.0000i

ans =

3.0000 + 7.0000i 6.2832 -15.0000i


6.2832 + 5.0000i 28.0000 + 1.4142i

ans =

1.0e+02 *

0.3948 + 0.2100i 1.1310 - 0.4500i


0.2783 + 0.0889i 2.5500 + 0.2546i

ans =

-1.0000 + 7.0000i -1.0000 -15.0000i


5.2832 + 0.0000i 17.0000 + 0.0000i

>>
12/11/18 12:46 PM C:\Users\2...\Monsalud_exercise2_la1.m 1 of 1

N = [ 0 1 6 5 4 3 ]
D = [ 1 7 6 5 4 7 ]
MATLAB Command Window Page 1

>> Monsalud_exercise2_la1

N =

0 1 6 5 4 3

D =

1 7 6 5 4 7

>>
12/11/18 12:47 PM C:\Users\2...\Monsalud_exercise3_la1.m 1 of 1

N = [ 0 1 6 5 4 3 ]
D = [ 1 7 6 5 4 7 ]

conv(N,D)
MATLAB Command Window Page 1

>> Monsalud_exercise3_la1

N =

0 1 6 5 4 3

D =

1 7 6 5 4 7

ans =

0 1 13 53 80 95 101 100 66 40 21

>>
Conclusion:

Throughout the activity, it can be concluded that MATLAB serves as a calculator, particularly in
solving graphs and complex equations such as partial fractions, matrices, polynomials, etc.
Moreover, there is a corresponding command for each mathematical function such as square root,
pi, etc. which will follow the syntax of the MATLAB. It can also infer that generating equations
and graphs can help a user to analyze data, to develop algorithms, and to create models and
applications.

You might also like