Extending the Linear Models 2: Linear Mixed-E ects Models Lab
lab-1 Linear Control Systems
description
Transcript of lab-1 Linear Control Systems
NAME:
MUNEEB-UR-REHMAN
AHSAN KHURSHID
SECTION:
50(C)
INSTRUCTOR:
SIR ABDUL GHAFOOR
LAB ENGINEER:
MAM SARA JAMIL
SUBJECT:
LINEAR CONTROL SYSTEMS
Question No 1:Q-1: Consider the two matrices and using MATLAB, perform following operations:
A = [6 4*pi ; 2*i 5+(sqrt(2))*i] B=[3*i -13*pi ; 2 8]
1. A+B 2. AB 3. At 4. A2 + B2 + AB
5. B-1 6. BtAt 7. A2 8. conjugate of A
Answer:
Question No 2:Consider the following set of linear algebraic equations, determine the values of x,y and z.
5x+6y+10z=4 3x+14z=10 7y+21z=0
Answer:
Question no 3:
Generate a plot of y(x)= e-0.5xSinwx, where w= 10 rad/s, and x=0:0.1:10.
Answer:
Question no 4:Develop a MATLAB script to plot the function y(x)=(4/π)coswx + (4/9π)cos3wx where w is a variable input at the command prompt. Label the x-axis with time(sec) and the y-axis with the whole equation. Include a descriptive header in the script, and verify that the help function will display the header. Choose w=1,3,10 rad/s and test the script.
Answer:W=1
W=3
W=10
Question no 5:Generate the plot of input and output_theta of aeropendulum and label x-axis as sin theta and y-axis as PWM input.
where input =[0 10 20 30 40 50 60 70 80 90 100 110 120 127]; theta=[0 0 0 2.5 6.8 10.5 14 20 24.5 29. 33.4 38 42 43] ; whereas output_theta= sine of theta; and theta is in degrees.
Answer: