Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
11 views
23 pages
574720133
control with matlab application
Uploaded by
abbasmiry83
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save 574720133 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
11 views
23 pages
574720133
control with matlab application
Uploaded by
abbasmiry83
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save 574720133 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 23
Search
Fullscreen
Dp OKLAHOMA STATE UNIVERSITY @ ECEN 4413 - Automatic Control Systems Matlab Lecture 1 Introduction and Control Basics Presented by Moayed Daneshyari 1What is Matlab? + Invented by Cleve Moler in late 1970s to give students access to LINPACK and EISPACK without having to learn Fortran. * Together with Jack Little and Steve Bangert they founded Mathworks in 1984 and created Matlab. * The current version is 7. + Interpreted-code based system in which the fundamental element is a matrix.The Interface Workspace and Launch Pad Command Window Command History and Current DirectoryVariable assignment *Scalar: a=4 *Vector: v= (35 1] == v=[3 5 1] v@)=8=—> v=[3 8 1] t=[0:0.1:5]==—— t=[0 01 02 =. 49 5] ee = (2:3 m=) “| Ao m(12-0=—> m=|. °Basic Operations * Scalar expressions 10 b= 10/ (sar(a) +3) / =p b= Va+3 c= cos (b* pi) ==> © =cos(bz) + Matrix expressions om tor=enls ala) (3Useful matrix operations * Determinant: det(m) * Inverse: inv(m) + Rank: rank(m) + i by j matrix of zeros: m = zerosii,)) + i by j matrix of ones: m = ones(i,)) + i by i identity matrix: m = eye(i)Example » Generate and plot a cosine functionExample + Adding titles to graphs and axisAdding graphs to reports * Three options: 1) Print the figure directly 2) Save it to a JPG / BMP / TIFF file and add to the report (File > Export...) 3) Copy to clipboard and paste to the report (Edit — Copy Figure) * * The background is copied too! By default it is gray. To change the background color use: set(gcf,’color’,’white’)The .m files + Programming in Matlab is done by creating “.m’” files. File New > M-File + Useful for storing a sequence of commands or creating new functions. * Call the program by writing the name of the file where it is saved (check the “current directory”) *“%” can be used for commenting.Other useful information * help
displays the help for the function ex.; help plot + helpdesk brings up a GUI for browsing very comprehensive help documents * save
saves everything in the workspace (all variables) to
.mat. + load
loads the file.Using Matlab to create models + Why model? - Represent - Analyze + What kind of systems are we interested? - Single-Input-Single-Output (SISO) - Linear Time Invariant (LT1) - ContinuousModel representations —————__ Three Basic types of model representations for continuous LTI systems: + Transfer Function representation (TF) + Zero-Pole-Gain representation (ZPK) + State Space representation (SS) ! More help is available for each model representation by typing: help Itimodels 13Transfer Function representation 25 Y¥(s)_ Se 2) (a) eS Matlab function: tf Method (a) Method (b)Zero-Pole-Gain representation on ye Ys) 8(5-1) SN SS ia) a (emOR GEE) Matlab function: zpkState Space representation 3 1 0 1 : . [x=Ax+ Bu A-| e-| | Given: ees : ol 0 c=[3 -2] D=[0] Matlab function: ssSystem analysis + Once a model has been introduced in Matlab, we can use a series of functions to analyze the system. + Key analyses at our disposal: 1) Stability analysis e.g. pole placement 2) Time domain analysis e.g. response to different inputs 3) Frequency domain analysis e.g. bode plotStability analysis Is the system stable? Recall: All poles of the system must be on the right hand side of the S plain for continuous LTI systems to be stable. Manually: Poles are the roots for the denominator of transfer functions or eigen values of matrix A for state space representations In Matlab: pole(sys)Time domain analysis Once a model has been inserted in Matlab, the step response can be obtained directly from: step(sys) Unit Step Response of G(s) Steady State overshoot Amplitude 1 i i i i Settling Time; Peak Time i o A 1.5 2 25 3 4 Time (sec) 19 Rise TimeTime domain analysis Matlab also caries other useful functions for time domain analysis: + Impulse response + Response to an arbitrary input e.g. ! It is also possible to assign a variable to those functions to obtain a vector with the output. For example: y = impulse(sys); 20Frequency domain analysis Bode plots can be created directly by using: bode(sys)Frequency domain analysis For a pole and zero plot: _pzmap(sys) | Imaginary AisExtra: partial fraction expansion 2 Given: G@uee 9 +354+2 num=[2 3 2]; den=[1 3 2]; [,p,k] = residue(num,den) Answer: re 7 6(s)=k(s) 4g... ! s-pll) pla) re i, a © 5-2) 5-(-1)
You might also like
Matlabhints
PDF
No ratings yet
Matlabhints
5 pages
Control Theory II LAB 1
PDF
No ratings yet
Control Theory II LAB 1
14 pages
Experiment 01
PDF
No ratings yet
Experiment 01
10 pages
Bode Plot
PDF
No ratings yet
Bode Plot
17 pages
66_2024_10_27!01_39_33_PM
PDF
No ratings yet
66_2024_10_27!01_39_33_PM
30 pages
Laboratorio 1 Control
PDF
No ratings yet
Laboratorio 1 Control
21 pages
lab 02 updated
PDF
No ratings yet
lab 02 updated
6 pages
Controls Lab Final
PDF
No ratings yet
Controls Lab Final
40 pages
Manual - Control System Lab
PDF
No ratings yet
Manual - Control System Lab
20 pages
MATLAB ® - The Language of Technical Computing
PDF
No ratings yet
MATLAB ® - The Language of Technical Computing
26 pages
LAB Session of Robotics and Automation1
PDF
No ratings yet
LAB Session of Robotics and Automation1
12 pages
A Primer in Matlab
PDF
No ratings yet
A Primer in Matlab
15 pages
MATLAB Tutorial PDF
PDF
No ratings yet
MATLAB Tutorial PDF
19 pages
DSP Lab 1
PDF
No ratings yet
DSP Lab 1
11 pages
SE&ST Lab - Linear Systems in MATLAB
PDF
No ratings yet
SE&ST Lab - Linear Systems in MATLAB
11 pages
DSP_LAB_Manual_IEE_Final JU
PDF
No ratings yet
DSP_LAB_Manual_IEE_Final JU
83 pages
Lab2 Control System
PDF
No ratings yet
Lab2 Control System
43 pages
1
PDF
No ratings yet
1
16 pages
Lab-2-Course Matlab Manual For LCS
PDF
No ratings yet
Lab-2-Course Matlab Manual For LCS
12 pages
Elosery/matlab
PDF
No ratings yet
Elosery/matlab
44 pages
Matlab I - Introduction To Matlab: 1. Variables, Matrices and Vectors
PDF
No ratings yet
Matlab I - Introduction To Matlab: 1. Variables, Matrices and Vectors
5 pages
Lab 02
PDF
No ratings yet
Lab 02
13 pages
Lec 1
PDF
No ratings yet
Lec 1
23 pages
Introductionto Matrix Laboratory
PDF
No ratings yet
Introductionto Matrix Laboratory
42 pages
DSP LAB DOC (Sur)
PDF
No ratings yet
DSP LAB DOC (Sur)
71 pages
Finite Impulse Response (FIR) Filter
PDF
No ratings yet
Finite Impulse Response (FIR) Filter
10 pages
Matlab Tutorial
PDF
No ratings yet
Matlab Tutorial
18 pages
S&s Lab Manual
PDF
No ratings yet
S&s Lab Manual
93 pages
6_2022_05_23!03_01_15_PM
PDF
No ratings yet
6_2022_05_23!03_01_15_PM
10 pages
Introduction To Matlab & Signals: Objective
PDF
No ratings yet
Introduction To Matlab & Signals: Objective
7 pages
Quick Matlab Reference: Note Command Syntax Is Case-Sensitive!
PDF
No ratings yet
Quick Matlab Reference: Note Command Syntax Is Case-Sensitive!
7 pages
Data Communications
PDF
No ratings yet
Data Communications
13 pages
MATLAB Short Tutorial
PDF
No ratings yet
MATLAB Short Tutorial
28 pages
Linear Control System Lab
PDF
100% (1)
Linear Control System Lab
18 pages
Logical Addressing: Network Layer
PDF
No ratings yet
Logical Addressing: Network Layer
22 pages
Control Lab PDF
PDF
No ratings yet
Control Lab PDF
21 pages
Introduction To Matlab& Signals: Defining A Scalar
PDF
No ratings yet
Introduction To Matlab& Signals: Defining A Scalar
10 pages
Feedback Control Systems Lab Manual
PDF
50% (2)
Feedback Control Systems Lab Manual
141 pages
TEE 451 - Control Systems
PDF
No ratings yet
TEE 451 - Control Systems
4 pages
Matlab Short Tutorial
PDF
No ratings yet
Matlab Short Tutorial
45 pages
Lec 2
PDF
No ratings yet
Lec 2
15 pages
Ex-701 Power System Protection.
PDF
No ratings yet
Ex-701 Power System Protection.
158 pages
Signals and Systems
PDF
No ratings yet
Signals and Systems
69 pages
Fuzzy Logic Control: Content
PDF
No ratings yet
Fuzzy Logic Control: Content
41 pages
H-Infinity Controller Design For A DC Motor Model With Uncertain Parameters
PDF
No ratings yet
H-Infinity Controller Design For A DC Motor Model With Uncertain Parameters
9 pages
Network Models: 2-1 Layered Tasks
PDF
No ratings yet
Network Models: 2-1 Layered Tasks
22 pages
Vii Sem Psoc Ee2404 Lab Manual
PDF
No ratings yet
Vii Sem Psoc Ee2404 Lab Manual
79 pages
Intro Tom at Lab
PDF
No ratings yet
Intro Tom at Lab
19 pages
Introduction To Matlab
PDF
No ratings yet
Introduction To Matlab
45 pages
Bode Plot: Example 1: Step 1: Rewrite The Transfer Function in Proper Form
PDF
No ratings yet
Bode Plot: Example 1: Step 1: Rewrite The Transfer Function in Proper Form
16 pages
Transfer Function and Block Diagram of Control System Transfer Function
PDF
No ratings yet
Transfer Function and Block Diagram of Control System Transfer Function
8 pages
Computer Networks Al-Mustansiryah University Elec. Eng. Department College of Engineering Fourth Year Class
PDF
No ratings yet
Computer Networks Al-Mustansiryah University Elec. Eng. Department College of Engineering Fourth Year Class
4 pages
Optimized Sinusoidal Seeking Control For MPPT Controller Based PSO
PDF
No ratings yet
Optimized Sinusoidal Seeking Control For MPPT Controller Based PSO
8 pages
Solution
PDF
No ratings yet
Solution
1 page
Data and Signals: Two Digital Signals: One With Two Signal Levels and The Other With Four Signal Levels
PDF
No ratings yet
Data and Signals: Two Digital Signals: One With Two Signal Levels and The Other With Four Signal Levels
11 pages
Control Engineering: 1) Basic Definitions: Controlled Variable
PDF
No ratings yet
Control Engineering: 1) Basic Definitions: Controlled Variable
4 pages
A Matlab Primer: by Jo Ao Lopes, Vitor Lopes
PDF
No ratings yet
A Matlab Primer: by Jo Ao Lopes, Vitor Lopes
45 pages
Addison Wesley - Modern Control Systems Analysis and Design Using Matlab PDF
PDF
No ratings yet
Addison Wesley - Modern Control Systems Analysis and Design Using Matlab PDF
84 pages
Introduction To Control System:: "Plant"-And A Sensor That Measures What The Controlled System Is
PDF
No ratings yet
Introduction To Control System:: "Plant"-And A Sensor That Measures What The Controlled System Is
8 pages
Lab Manual SIGNAL & SYSTEMS PDF
PDF
No ratings yet
Lab Manual SIGNAL & SYSTEMS PDF
85 pages
Design and Implementation of The Dual-Axis Solar Tracking System
PDF
No ratings yet
Design and Implementation of The Dual-Axis Solar Tracking System
2 pages
Hikvision NVR Recommended Bitrate
PDF
No ratings yet
Hikvision NVR Recommended Bitrate
1 page
Control Systems Lab Manual
PDF
100% (1)
Control Systems Lab Manual
107 pages
Control System Lab Manual (Kec-652)
PDF
No ratings yet
Control System Lab Manual (Kec-652)
29 pages
MATLAB
PDF
100% (1)
MATLAB
208 pages