Top Banner
NAME: MUNEEB-UR- REHMAN AHSAN KHURSHID SECTION: 50(C) INSTRUCTOR: SIR ABDUL GHAFOOR LAB ENGINEER: MAM SARA JAMIL
15

lab-1 Linear Control Systems

Jul 12, 2016

Download

Documents

Muhammad Adnan

Linear Control Systems Lab 1 is uploaded here for users consultation.
It done is by Ahsan Khurshid and Muneeb Ur Rehman and the instructor is Sir Abdul Ghafoor (double PhD) for this subject.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 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

Page 2: lab-1 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

Page 3: lab-1 Linear Control Systems

5. B-1 6. BtAt 7. A2 8. conjugate of A

Answer:

Page 4: lab-1 Linear Control Systems
Page 5: lab-1 Linear Control Systems
Page 6: lab-1 Linear Control Systems

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:

Page 7: lab-1 Linear Control Systems

Generate a plot of y(x)= e-0.5xSinwx, where w= 10 rad/s, and x=0:0.1:10.

Answer:

Page 8: lab-1 Linear Control Systems

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

Page 9: lab-1 Linear Control Systems

W=3

Page 10: lab-1 Linear Control Systems

W=10

Page 11: lab-1 Linear Control Systems

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:

Page 12: lab-1 Linear Control Systems
Page 13: lab-1 Linear Control Systems