MATLAB CONTROL SYSTEM TOOLBOX 9 Specifikace

Procházejte online nebo si stáhněte Specifikace pro Software MATLAB CONTROL SYSTEM TOOLBOX 9. MATLAB CONTROL SYSTEM TOOLBOX 9 Specifications [en] Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 591
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 0
Computation
Visualization
Programming
For Use with MATLAB
®
Using the Control System Toolbox
Version 1
Control System
Toolbox
Zobrazit stránku 0
1 2 3 4 5 6 ... 590 591

Shrnutí obsahu

Strany 1 - Control System

ComputationVisualizationProgrammingFor Use with MATLAB®Using the Control System ToolboxVersion 1Control SystemToolbox

Strany 2 - How to Contact The MathWorks:

viiiStore ... 13-20Retrieve... 13-21Clear ...

Strany 3

3 Operations on LTI Models3-26Resampling of Discrete-Time ModelsYou can resample a discrete-time TF, SS, or ZPK model sys1 by typingsys2 = d2d(sys1,Ts

Strany 4 - Operations on LTI Models

References3-27References[1] Åström, K.J. and B. Wittenmark, Computer-Controlled Systems: Theoryand Design, Prentice-Hall, 1990, pp. 48–52.[2] Franklin

Strany 5

3 Operations on LTI Models3-28

Strany 6

4Model Analysis ToolsGeneral Model Characteristics ...4-2Model Dynamics ...4-4State-Space Realizations ...4-7

Strany 7

4 Model Analysis Tools4-2

Strany 8

General Model Characteristics4-3General Model CharacteristicsGeneral model characteristics include the model type, I/O dimensions,and continuous or di

Strany 9 - SISO Design Tool Reference

4 Model Analysis Tools4-4 Transfer function from input 2 to output: s – 1--------------s^2 + 2 s + 10class(H)ans =tfsize(H)Transfer function with 2

Strany 10 - LTI Viewer Reference

Model Dynamics4-5Model DynamicsThe Control System Toolbox offers commands to determine the systempoles, zeros, DC gain, norms, etc. You can apply thes

Strany 11

4 Model Analysis Tools4-6–1.7971 – 2.2137i–0.2629 + 2.7039i–0.2629 – 2.7039izero(h)ans = –0.0500 + 2.7382i –0.0500 – 2.7382i –2.0000 dcgain(h)an

Strany 12 - Function Reference

Model Dynamics4-7 Model sysarray(:,:,3,1)=======================Transfer function: 0.621 s + 0.7567 --------------------- s^2 + 2.942 s + 2.1133x

Strany 13

ixLTI Viewer Menu Bar ... 14-4File ... 14-4NewViewer ...

Strany 14 - Contents

4 Model Analysis Tools4-8State-Space RealizationsThe following functions are useful to analyze, perform state coordinatetransformations on, and derive

Strany 15

State-Space Realizations4-9poorly suited for state-space computations. Consequently, it is wise touse them only for analysis purposes and notincontrol

Strany 16

4 Model Analysis Tools4-10

Strany 17

5Arrays of LTI ModelsIntroduction ...5-4When to Collect a Set of Models in an LTI Array . . . . . . 5-2Restrictions for LTI Models Co

Strany 18 - 1 Introduction

5 Arrays of LTI Models5-2IntroductionIn many applications, it is useful to consider collections of linear, timeinvariant (LTI) models. For example, yo

Strany 19 - LTI Models

Introduction5-3•The number of inputs and outputs•The sample time, for discrete-time models•The I/O names and I/O groupsNote You cannot specify Simuli

Strany 20 - 2 LTI Models

5 Arrays of LTI Models5-4The Concept of an LTI ArrayTo visualize the concept of an LTI array, consider the set of five transferfunction models shown b

Strany 21 - Other Uses of FRD Models

The Concept of an LTI Array5-5Just as you might collect a set of two-by-two matrices in a multidimensionalarray, you can collect this set offive trans

Strany 22 - LTI Properties and Methods

5 Arrays of LTI Models5-6Higher Dimensional Arrays of LTI ModelsYou can also collect a set of models in a two-dimensional array. The followingdiagram

Strany 23 - Precedence Rules

Dimensions, Size, and Shape of an LTI Array5-7Dimensions, Size, and Shape of an LTI ArrayThe dimensions and size of a single LTI model are determined

Strany 24 - Command Summary

x ContentsCharacteristics ... 15-4Grid... 15-5Zoom ...

Strany 25

5 Arrays of LTI Models5-8The next figure illustrates the concepts of dimension and size for the LTI arraym2d, a 2-by-3 array of one-input, two-output

Strany 26 - SISO Transfer Function Models

Dimensions, Size, and Shape of an LTI Array5-9•N, the number of models in the LTI array•K, the number of array dimensions• , the list of lengths of th

Strany 27

5 Arrays of LTI Models5-10Note the following when using the size function:•By convention, a single LTI model is treated as a 1-by-1 array of models.Fo

Strany 28 - MIMO Transfer Function Models

Dimensions, Size, and Shape of an LTI Array5-11reshapeUsereshape to reorganizethearrangement (arrayconfiguration) ofthemodelsof an existing LTI array.

Strany 29 - Pure Gains

5 Arrays of LTI Models5-12Building LTI ArraysThere are several ways to build LTI arrays:•Using afor loop to assign each model in the array•Usingstack

Strany 30

Building LTI Arrays5-13Suppose, based on measured input and output data, you estimate confidenceintervals , and for each of the parameters, and . All

Strany 31 - MIMO Zero-Pole-Gain Models

5 Arrays of LTI Models5-14The first two colon indices ( ) select all I/O channels from the I/O dimensionsofH.Thethird index ofH refers to the firstarr

Strany 32

Building LTI Arrays5-15For the purposes of efficient computation, you can initialize an LTI array tozero, and then reassign the entire array to the va

Strany 33

5 Arrays of LTI Models5-16When you concatenate several models or LTI arrays along the jth arraydimension, such as instack(j,sys1,sys2,...,sysn)•The le

Strany 34

Building LTI Arrays5-17Notice that this result is very different from the single MIMO LTI modelreturned byH = [H11,H12;H21,H22];Building LTI Arrays Us

Strany 35

xidsort ... 16-65dss ... 16-66dssdata ...

Strany 36

5 Arrays of LTI Models5-18•gains is a multidimensional array containing the scalar gains for each I/Opair of each model in the array.•The dimensions (

Strany 37 - Discrete-Time Models

Building LTI Arrays5-19Specifying Arrays of FRD Models Using frdTo specify a K-dimensional array of p-output, m-input FRD models for whichare the leng

Strany 38

5 Arrays of LTI Models5-20Indexing Into LTI ArraysYou can index into LTI arrays in much the same way as you would formultidimensional arrays to:•Acces

Strany 39

Indexing Into LTI Arrays5-21•The remaining indices specify the model coordinates within the array.For example, ifsys is a 5-by-2 array of state-space

Strany 40

5 Arrays of LTI Models5-22or equivalently,A = sys(1,[1 2],:,:)selects the first two input channels,and the first output channel in each modelof the LT

Strany 41 - Data Retrieval

Indexing Into LTI Arrays5-23Notice that you don’t have to use the array dimensions with this assignment.This is because I/O selection applies to all m

Strany 42

5 Arrays of LTI Models5-24Operations on LTI ArraysUsing LTI arrays, you can apply almost all of the basic model operations thatwork on single LTI mode

Strany 43 - LTI Properties

Operations on LTI Arrays5-25Example: Addition of Two LTI ArraysThe following diagram illustrates the addition of two 3-by-1 LTI arrayssys1+sys2.Figure

Strany 44

5 Arrays of LTI Models5-26Note that:•Each model insys1 and sys2 must have the same number of inputs andoutputs. This is required for the addition of t

Strany 45

Operations on LTI Arrays5-27dimensions as sys1. You can use shortcuts for coding sysa = op(sys1,sys2)in the following cases:•For operations that apply

Strany 46

xii Contentsnichols... 16-149norm ... 16-152nyquist ...

Strany 47

5 Arrays of LTI Models5-28h(:,:,i)=tf(1,[1 tau]); endH = [h 0; –1 tf(1,[1 0])]; %Concatenation: array h & single modelssize(H)3x1 array of continu

Strany 48

Operations on LTI Arrays5-29adds the array of scalars to each entry of each MIMO model in the LTI array[h,h] on a model-by-model basis. This last comm

Strany 50

6CustomizationThe Property and Preferences Hierarchy . . . . . . . . . 6-3

Strany 51 - Sample Time

6 Customization6-2The Control System Toolbox provides editors that allow you to set propertiesand preferences in the SISO Design Tool, the LTI Viewer,

Strany 52

6-3The Property and Preferences HierarchyThis diagram explains the hierarchy from properties, which are local, totoolbox preferences, which are global

Strany 54

7Setting ToolboxPreferencesOpening the Toolbox Preferences Editor . . . . . . . . . 7-2UnitsPage...7-3StylePage ...

Strany 55 - )oranoutputgroup(O)

7 Setting Toolbox Preferences7-2The Toolbox Preferences Editor allows you to set plot preferences that willpersist from session to session. This is th

Strany 56

7-3Units PageNote To get help on pages in the Control System Toolbox Preferences editor,click on the page tabs below.Use theUnits page to set prefere

Strany 57

xiiiIndex

Strany 58 - Model Conversion

7 Setting Toolbox Preferences7-4Use the Style page to toggle grid visibility and set font preferences and axesforeground colors for all plots you crea

Strany 59 - Automatic Conversion

7-5The Characteristics page has selections for response characteristics and phasewrapping. This figure shows the Characteristics page with default set

Strany 60

7 Setting Toolbox Preferences7-6The SISO Tool page has settings for the SISO Design Tool. This figure showsthe SISO Tool page with default settings.Yo

Strany 61 - Time Delays

8Setting Tool PreferencesOpeningtheLTIViewerPreferencesEditor...8-2UnitsPage...8-3StylePage ...8-3Characteris

Strany 62

8 Setting Tool Preferences8-2Both the LTI Viewer and the SISO Design Toolhave Tool Preferences Editors.These editors comprise the middle layer of “The

Strany 63 - Distillation Column Example

8-3Units PageNote Click on the page tabs below to get help on LTI Viewer Preferenceeditor pages.You can select the following on theUnits page (shown

Strany 64

8 Setting Tool Preferences8-4Use the Style page to toggle grid visibility and set font preferences and axesforeground colors for all plots in the LTI

Strany 65

8-5The Characteristics page, shown below, has selections for responsecharacteristics and phase wrapping.The following choices are available:•Response

Strany 66

8 Setting Tool Preferences8-6Use the Parameters page, shown below, to specify input vectors for time andfrequency simulation.The defaults are to gener

Strany 67

8-7To open the SISO Tool Preferences editor, select SISO Tool Preferencesfrom the Edit menu of the SISO Design Tool. This window opens.Figure 8-2: Th

Strany 68

xiv Contents

Strany 69

8 Setting Tool Preferences8-8The Units page has settings for the following units:•Frequency — Radians per second (rad/sec) or Hertz (Hz)•Magnitude — D

Strany 70

8-9Colors PanelSpecify the color vector to use for the axes foreground, which includes the X-Yaxes, grid lines, and tick labels. Use a three-element v

Strany 71

8 Setting Tool Preferences8-10the Define Custom Colors button. This extends the Select Color window, asshowninthisfigure.You can pick colors fromtheco

Strany 72

8-11The Options page, shown below, has selections for compensator format andBode diagrams.You can make the following selections:•Compensator Format —

Strany 73

8 Setting Tool Preferences8-12Line Colors PageNote Click on the page tabs below to get help on SISO Tool Preference editorpages.TheLine Colors page,

Strany 74

9Customizing ResponsePlot PropertiesProperty Editor ...9-3LabelsPage...9-4LimitsPage...9-4UnitsPage

Strany 75

9 Customizing Response Plot Properties9-2The lowest level of “The Property and Preferences Hierarchy” is settingresponse plot properties. If you have

Strany 76

Property Editor9-3Property EditorNote Click on the page tabs below to get help on pages in the PropertyEditor.This figure shows theProperty Editor fo

Strany 77

9 Customizing Response Plot Properties9-4As you make changes in the Property Editor, they display immediately in theresponse plot. Conversely, if you

Strany 78

Property Editor9-5The Control System Toolbox selects default values for the axes limits to makesurethatthemaximumandminimum xandyvaluesare displayed.I

Strany 79

1 Introduction

Strany 80

9 Customizing Response Plot Properties9-6You can use the units page to change units in your response plot. The contentsof this page depend on the resp

Strany 81

Property Editor9-7Style PageNote Click on the page tabs below to get help on pages in the PropertyEditor.Use theStyle page to toggle grid visibility

Strany 82

9 Customizing Response Plot Properties9-8•Colors — Specify the color vector to use for the axes foreground, whichincludes the X-Y axes, grid lines, an

Strany 83 - Resizing LTI Systems

Property Editor9-9them. Use the checkboxes to activate the feature and the fields to specify riseor settling time percentages.Table 9-2: Response Cha

Strany 84

9 Customizing Response Plot Properties9-10Property Editing for SubplotsIf you create more than one plot in a single figure window, you can edit eachpl

Strany 85 - Arithmetic Operations

Customizing Plots Inside the SISO Design Tool9-11Customizing Plots Inside the SISO Design ToolCustomizing plots inside the SISO Design Tool issimilar

Strany 86

9 Customizing Response Plot Properties9-12Labels PageNote Click on the page tabs below to get help on pages in the Root LocusProperty Editor.You can

Strany 87 - Multiplication

Customizing Plots Inside the SISO Design Tool9-13root locus plot. Use the Limits page, shown below, to override the defaultsettings.To change the limi

Strany 88 - Pertransposition

9 Customizing Response Plot Properties9-14Using these buttons, you can store and retrieve any number of saved customaxes limits.Options PageNote Clic

Strany 89

Customizing Plots Inside the SISO Design Tool9-15at the MATLAB promptandimportGservo from the workspace into your SISODesign Tool.Figure 9-3: Display

Strany 90

1 Introduction1-2For convenience, this document gathers together nearly all the online doc forthe Control System Toolbox in PDF format for printing. T

Strany 91

9 Customizing Response Plot Properties9-16•Select Bode and then Properties from Edit in the menu barNote Click on the page tabs below to get help on

Strany 92

Customizing Plots Inside the SISO Design Tool9-17You can use the Label page to specify plot titles and axis labels. To specify anew label, type the st

Strany 93

9 Customizing Response Plot Properties9-18The Control System Toolbox sets default limits for the frequency, magnitude,and phase scales for your plots.

Strany 94 - Zero-Order Hold

Customizing Plots Inside the SISO Design Tool9-19This figure shows the Options page for Bode diagrams.The following options are available from this pa

Strany 95

9 Customizing Response Plot Properties9-20

Strany 96 - Tustin Approximation

10Design Case StudiesYaw Damper for a 747 Jet Transport ...10-3Open-LoopAnalysis ...10-5RootLocusDesign...10-9Washo

Strany 97 - Matched Poles and Zeros

10 Design Case Studies10-2This chapter contains four detailed case studies of control system design andanalysis using the Control System Toolbox.•“Yaw

Strany 98

Yaw Damper for a 747 Jet Transport10-3Yaw Damper for a 747 Jet TransportThis case study demonstrates the tools for classical control design by steppin

Strany 99 - Amplitude

10 Design Case Studies10-4 b = rudder aileron beta 0.0729 0 yaw -4.75 0.00775

Strany 100 - 3 Operations on LTI Models

Yaw Damper for a 747 Jet Transport10-5pzmap(sys)This model has one pair of lightly damped poles. They correspond to what iscalled the “Dutch roll mode

Strany 101 - References

2LTI ModelsCreating LTI Models ...2-8LTI Properties ...2-25Model Conversion ...2-40Time Delays ...

Strany 102

10 Design Case Studies10-6impulse(sys)Theimpulseresponseconfirmsthatthesystemis lightly damped. But the timeframe is much too long because the passeng

Strany 103 - Model Analysis Tools

Yaw Damper for a 747 Jet Transport10-7impulse(sys,20)Look at the plot from aileron (input 2) to bank angle (output 2). To show onlythis plot, right-cl

Strany 104 - 4 Model Analysis Tools

10 Design Case Studies10-8The new figure is shown below.The aircraft is oscillating around a nonzero bank angle. Thus, the aircraft isturning in respo

Strany 105 - General Model Characteristics

Yaw Damper for a 747 Jet Transport10-9bode(sys11)From this Bode diagram, you can see that the rudder has significant effectaround the lightly damped D

Strany 106

10 Design Case Studies10-10rlocus(sys11)This is the root locus for negative feedback and shows that the system goesunstable almost immediately. If, in

Strany 107 - Model Dynamics

Yaw Damper for a 747 Jet Transport10-11sgridThis looks better. By using simple feedback, you can achieve a damping ratioof . Click on the blue curve a

Strany 108

10 Design Case Studies10-12gain and damping values. To achieve a 0.45 damping ratio, the gain should beabout 2.85. This figure shows the data marker w

Strany 109

Yaw Damper for a 747 Jet Transport10-13impulse(sys11,'b--',cl11,'r',20)The closed-loop response settles quickly and does not oscil

Strany 110 - State-Space Realizations

10 Design Case Studies10-14Plot the MIMO impulse response.impulse(sys,'b--',cloop,'r',20)The yaw rate response is now well damped,

Strany 111

Yaw Damper for a 747 Jet Transport10-15The washoutfilter places a zero at the origin,which constrains the spiral modepole to remain near the origin. W

Strany 112

How to Contact The MathWorks:508-647-7000 Phone508-647-7001 FaxThe MathWorks, Inc. Mail3AppleHillDriveNatick, MA 01760-2098http://www.mathworks.com We

Strany 113 - Arrays of LTI Models

2 LTI Models2-2The Control System Toolbox offers extensive tools to manipulate and analyzelinear time-invariant (LTI) models. It supports both continu

Strany 114 - Introduction

10 Design Case Studies10-16This figure shows a data marker at the maximum damping ratio; the gain isapproximately 2.07.Look at the closed-loop respons

Strany 115

Yaw Damper for a 747 Jet Transport10-17impulse(cl11,20)The response settles nicely but has less damping than your previous design.Finally, you can ver

Strany 116 - The Concept of an LTI Array

10 Design Case Studies10-18% Final closed-loop impulse responseimpulse(sys,'b--',cloop,'r',20)The bank angle response (output 2)du

Strany 117

Yaw Damper for a 747 Jet Transport10-19response more closely, use the I/O Selector in the right-click menu to select the(2,2) I/O pair.Although you di

Strany 118

10 Design Case Studies10-20Hard-Disk Read/Write Head ControllerThis case study demonstrates the ability to perform classical digital controldesign by

Strany 119

Hard-Disk Read/Write Head Controller10-21num = Ki;den = [J C K];H = tf(num,den)MATLAB responds withTransfer function: 0.05--------------------

Strany 120

10 Design Case Studies10-22bode(H,'-',Hd,'--')To analyze the discrete system, plot its step response, type

Strany 121

Hard-Disk Read/Write Head Controller10-23step(Hd)The system oscillates quite a bit. This is probably due to very light damping.You can check this by c

Strany 122

10 Design Case Studies10-24rlocus(Hd)As shown in the root locus, the poles quickly leave the unit circle and gounstable. You need to introduce some le

Strany 123

Hard-Disk Read/Write Head Controller10-25D = zpk(0.85,0,1,Ts)oloop = Hd * DNow see how this compensator modifies the open-loop frequency response.bode

Strany 124 - Building LTI Arrays

2-3Using LTI Models in the Control System ToolboxYou can manipulate TF, SS, and ZPK models using the arithmetic and modelinterconnectionoperations des

Strany 125

10 Design Case Studies10-26Open the Property Editor by right-clicking in the plot away from the curve.On theLimits page, set the x-axis limits from -1

Strany 126

Hard-Disk Read/Write Head Controller10-27marker to find the point on the curve where the gain equals 4.111e+03. Thisfigure shows the data marker at th

Strany 127

10 Design Case Studies10-28step(cloop)Thisresponsedependsonyourclosedloopsetpoint.Theoneshownhereisrelatively fastandsettles inabout 0.07 seconds. The

Strany 128

Hard-Disk Read/Write Head Controller10-29Next apply margin to this open-loop model. Type[Gm,Pm,Wcg,Wcp] = margin(olk);Margins = [Gm Wcg Pm Wcp]Margins

Strany 129

10 Design Case Studies10-30The command produces the plot shown below.This design is robust and can tolerate a 11 dB gain increase or a 40 degreephase

Strany 130

LQG Regulation: Rolling Mill Example10-31LQG Regulation: Rolling Mill ExampleThis case study demonstrates the use of the LQG design tools in a process

Strany 131

10 Design Case Studies10-32This shape is impressed by two pairs of rolling cylinders (one per axis)positioned by hydraulic actuators. The gap between

Strany 132 - Indexing Into LTI Arrays

LQG Regulation: Rolling Mill Example10-33This leads to the following generic model for each axis of the rolling process.Figure 10-1: Open-loop model

Strany 133

10 Design Case Studies10-34Model Data for the x-AxisModel Data for the y-AxisLQG Design for the x-AxisAs a first approximation, ignore the cross-coupl

Strany 134

LQG Regulation: Rolling Mill Example10-35% Input thickness/hardness disturbance modelFix = tf(1e4,[1 0.05],'inputn','w-ix')% Rolli

Strany 135

2 LTI Models2-4Creating an LTI Object: An ExampleAn LTI object of the type TF, ZPK, SS, or FRD is created whenever you invokethe corresponding constru

Strany 136 - Operations on LTI Arrays

10 Design Case Studies10-36ans = 'x-gap' 'x-force'The second output 'x-force' is the rolling force measurement. T

Strany 137

LQG Regulation: Rolling Mill Example10-37Note: lqry expects all inputs to be commands and all outputs to bemeasurements. Here the command'u-x&ap

Strany 138

10 Design Case Studies10-38bode(Regx,{0.1 1000})The phase response has an interesting physical interpretation. First, consideran increase in input thi

Strany 139

LQG Regulation: Rolling Mill Example10-39 'u-x' 'w-ex' 'w-ix' Regx.outputnameans = 'u-x' Px.outpu

Strany 140

10 Design Case Studies10-40bode(Px(1,2:3),'--',clx(1,2:3),'-',{0.1 100})The dashed lines show the open-loop response. Note that th

Strany 141

LQG Regulation: Rolling Mill Example10-41lsim(Px(1,2:3),':',clx(1,2:3),'-',wx,t)The dotted lines correspond to the open-loop respo

Strany 142

10 Design Case Studies10-42% State-feedback gain designPydes = append(lpf,1) * Py % Add low-freq. weigthingset(Pydes,'outputn',{'y-gap

Strany 143 - Customization

LQG Regulation: Rolling Mill Example10-43lsim(Py(1,2:3),':',cly(1,2:3),'-',wy,t)The dotted lines correspond to the open-loop respo

Strany 144 - 6 Customization

10 Design Case Studies10-44The coupling between axes is as follows.Figure 10-2: Coupling between the x- and y-axesAccordingly, the thickness gaps and

Strany 145 - LTI Viewer

LQG Regulation: Rolling Mill Example10-45Let’s see how the previous “decoupled” LQG design fares when cross-couplingis taken into account. To build th

Strany 146

2-5Precedence RulesOperations like addition and commands like feedback operate on more thanone LTI model at a time. If these LTI models are represente

Strany 147 - Preferences

10 Design Case Studies10-46lsim(Pc(1:2,3:6),':',cl(1:2,3:6),'-',wxy,t)The response reveals a severe deterioration in regulation pe

Strany 148 - 7 Setting Toolbox Preferences

LQG Regulation: Rolling Mill Example10-47 'w_ey' 'w_iy'P.outputnameans = 'x-gap' 'y-gap' &apos

Strany 149 - Style Page

10 Design Case Studies10-48sigma(RegMIMO)Next, plot the open- and closed-loop time responses to the white noise inputs(using the MIMO LQG regulator fo

Strany 150

LQG Regulation: Rolling Mill Example10-49lsim(Pc(1:2,3:6),':',cl(1:2,3:6),'-',wxy,t)The MIMO design is a clear improvement over th

Strany 151 - SISO Tool Page

10 Design Case Studies10-50Kalman FilteringThis final case study illustrates the use of the Control System Toolbox forKalman filter design and simulat

Strany 152 - Setting Toolbox Preferences

Kalman Filtering10-51In these equations:• is the estimate of given past measurements up to• is the updated estimate based on the last measurementGiven

Strany 153 - Setting Tool Preferences

10 Design Case Studies10-52 'outputname','y');Assuming that , you can now design the discrete Kalman filt

Strany 154 - 8 Setting Tool Preferences

Kalman Filtering10-53 x2_e 0.5919 0.3798 x3_e 0.5191 0.081732 c = x1_e x2_e

Strany 155

10 Design Case Studies10-54You can construct a state-space model of this block diagram with the functionsparallel and feedback. First build a complete

Strany 156

Kalman Filtering10-55 'v' 'u'SimModel.outputnameans = 'y' 'y_e'You are now ready to simulate the

Strany 157 - Parameters Page

2 LTI Models2-6sys = sys1 + sys2because parallel connection amounts to adding the transfer matrices.Similarly, subsystems of a given LTI modelsys can

Strany 158

10 Design Case Studies10-56xlabel('No. of samples'), ylabel('Error')The first plot shows the true response (dashed line) and the f

Strany 159

Kalman Filtering10-57EstErrCov EstErrCov = 0.2722Time-Varying Kalman FilterThe time-varying Kalman filter is a generalization of the steady-state f

Strany 160 - Fonts Panel

10 Design Case Studies10-58For simplicity, we have dropped the subscripts indicating the time dependenceof the state-space matrices.Given initial cond

Strany 161 - Colors Panel

Kalman Filtering10-59 x = A*x + B*u(i); % x[n+1|n] P = A*P*A' + B*Q*B'; % P[n+1|n]endYou can now compare the true and estimated

Strany 162

10 Design Case Studies10-60plot(t,errcov), ylabel('Error covar')From this covariance plot, you can see that the output covariance did indeed

Strany 163

Kalman Filtering10-61Mn = 0.3798 0.0817 -0.2570M = 0.3798 0.0817 -0.2570References[1] Grimble, M.J., Robust Industrial Control: Optima

Strany 164

10 Design Case Studies10-62

Strany 165 - Plot Properties

11Reliable ComputationsConditioning and Numerical Stability ...11-4Conditioning ...11-4Numerical Stability . . . . . . . . . . .

Strany 166 - Property Editor is

11 Reliable Computations11-2When working with low-order SISO models (less than five states), computersare usually quite forgiving and insensitive to n

Strany 167 - Property Editor

11-3At the same time, it is important to appreciate the limitations of computeranalyses. By following a few guidelines, you can avoid certain tools an

Strany 168 - Limits Page

2-7ssdata, dssdataRetrieve state-space data (respectively, descriptorstate-space data).tfCreate a transfer function.tfdataRetrieve transfer function d

Strany 169

11 Reliable Computations11-4Conditioning and Numerical StabilityTwo of the key concepts in numerical analysis are the conditioning of problemsand the

Strany 170

Conditioning and Numerical Stability11-5Notice how much the small change in the data is magnified in the solution.One way to measure the magnification

Strany 171

11 Reliable Computations11-6row of A. This perturbed matrix has n distinct eigenvalues with. Thus, you can see that this small perturbation in thedata

Strany 172 - Characteristics Page

Conditioning and Numerical Stability11-7Using row 1as the pivot row (i.e., subtracting 1000 times row 1from row 2)youarrive at the equivalent triangul

Strany 173

11 Reliable Computations11-8Choice of LTI ModelNow turn to the implications of the results in the last section on the linearmodeling techniquesused fo

Strany 174 - Property Editing for Subplots

Choice of LTI Model11-9A major difficulty is the extreme sensitivity of the roots of a polynomial to itscoefficients. This example is adapted from Wil

Strany 175

11 Reliable Computations11-10very little. This is true ingeneral. Different roots have different sensitivities todifferent perturbations. Computed roo

Strany 176

Choice of LTI Model11-11 5.000000270433721e+00 5.000000000000000e+00 5.999998194359617e+00 6.000000000000000e+00 7.000004542844700

Strany 177 - Auto-Scale checkboxes

11 Reliable Computations11-12 0 0 0 10.0000The condition number (with respect to inversion) of the eigenvector matrix iscond

Strany 178 - Options Page

Choice of LTI Model11-13The condition number of the new eigenvector matrixcond(vc)ans =34.5825is thirty times larger.The phenomenon illustrated abovei

Strany 179

2 LTI Models2-8Creating LTI ModelsThe functions tf, zpk, ss,andfrd create transfer function models,zero-pole-gain models, state-space models, and freq

Strany 180

11 Reliable Computations11-14extraordinary arithmetic range difficulties of polynomial coefficients, asillustrated in the “Transfer Function” section.

Strany 181

Scaling11-15ScalingStatespaceisthepreferred modelforLTIsystems, especially withhigher ordermodels. Even with state-space models, however, accurate res

Strany 182

11 Reliable Computations11-16entries are the smallest deviations that are significant to each variable. Anexcellent discussion of scaling is given in

Strany 183

Summary11-17SummaryThis chapter has described numerous things that can go wrong whenperforming numerical computations. You won’t encounter most of the

Strany 184

11 Reliable Computations11-18References[1] Dongarra, J.J., J.R. Bunch,C.B. Moler, and G.W. Stewart, LINPACK UsersGuide, SIAM Publications, Philadelphi

Strany 186 - 10 Design Case Studies

12 GUI Reference12-2The next three chapters discuss in detail all the features of theLTI Viewer andthe SISO Design Tool. The LTI Viewer is a graphical

Strany 187

13 SISO Design ToolReferenceMenu Bar ...13-4Tool Bar ...13-23Current Compensator ...13-24Feedback Stru

Strany 188

13 SISO Design Tool Reference13-2TheSISO DesignTool isa graphical-user interface(GUI)thatallowsyou touseroot-locus and Bode diagram techniques to desi

Strany 189 - Open-Loop Analysis

13-3This document describes the SISO Design Tool features left-to-right andtop-to-bottom, starting with the Menu bar and ending with the Status panel

Strany 190

Creating LTI Models2-9where num and den are row vectors listing the coefficients of the polynomialsand , respectively, when these polynomials are orde

Strany 191

13 SISO Design Tool Reference13-4Menu BarNote Click on items on the menu bar pictured below to get help contents.Most of the tasks you can do in the

Strany 192

Menu Bar13-5ImportSelect Import to import models into the SISO Design Tool. Selecting Importopens the Import System Data window, which is shown below.

Strany 193 - Root Locus Design

13 SISO Design Tool Reference13-6•Feedback structure specification — Press Other to toggle between placingthe compensator in the forward and feedback

Strany 194

Menu Bar13-7they are adjacent on the list. If you want to save non-adjacent models, holddown theCtrl key while selecting the models.2 For each model y

Strany 195

13 SISO Design Tool Reference13-8Toolbox PreferencesSelect Toolbox Preferences to open the Control System Toolbox Preferencesmenu. This picture shows

Strany 196

Menu Bar13-9Print to FigurePrint to Figure opens a separate figure window containing the root locusand/or Bode diagrams in your current SISO Design To

Strany 197

13 SISO Design Tool Reference13-10SISO Tool PreferencesSISO Tool Preferences opens the SISO Tool Preferences editor. This pictureshows the open window

Strany 198

Menu Bar13-11Root Locus and Bode DiagramsBy default, the SISO Design Tool displays the root locus and Bode magnitudeand phase diagrams. You can desele

Strany 199

13 SISO Design Tool Reference13-12Closed Loop PolesUsethismenuitemtodisplaytheclosed-looppolevaluesofthecurrentsystem.Design HistorySelecting Design H

Strany 200

Menu Bar13-13•Open-Loop Nyquist — The open-loop Nyquist plot for your system•Open-Loop Nichols — The open-loop Nichols plot for your systemCustomizing

Strany 201 - WOF = -K * H;

2 LTI Models2-10MIMO Transfer Function ModelsMIMO transfer functions are two-dimensional arrays of elementary SISOtransfer functions. There are severa

Strany 202

13 SISO Design Tool Reference13-14•Loop transfer — This is defined as the compensator (C), the plant (G), andthe sensor (H) multiplied together (CGH).

Strany 203 - (2,2) I/O pair

Menu Bar13-15Continuous/Discrete ConversionsSelectingContinuous/Discrete Conversions opens theContinuous/DiscreteConversionswindow, which you can use

Strany 204 - Hard Disk Drive

13 SISO Design Tool Reference13-16Conversion method. The following are the available continuous-to-discreteconversion methods:•Zero-order hold•First-o

Strany 205

Menu Bar13-17•Tustin with prewarping•Matched pole/zeroAgain, if you choose Tustin with prewarping, you must specify the criticalfrequency.Draw a Simul

Strany 206

13 SISO Design Tool Reference13-18FormatSelecting Format under Compensator activates the SISO Tool Preferenceseditor with theOptions page open. This f

Strany 207

Menu Bar13-19For a general description of the SISO Tool Preferences editor, see SISO DesignTool Preferences in the online documentation.EditSelecting

Strany 208

13 SISO Design Tool Reference13-20Adding poles and zerosTo add real poles to yourcompensator, press Add Real Pole.Thisactionopensan empty field in the

Strany 209 - D = zpk(0.85,0,1,Ts)

Menu Bar13-21RetrieveRetrieve opens the Compensator Designs window, shown in the figurebelow.Thiswindowlistsallthecompensatordesignsyou havestoredduri

Strany 210

13 SISO Design Tool Reference13-22Each topics takes you to a different place in the online documentation:•Main Help — The top of this document (SISO T

Strany 211 - K = 4.11e+03;

Tool Bar13-23Tool BarThe tool bar performs the following operations:•Add and delete real and complex poles and zeros•Zoom in and out•Invoke the SISO D

Strany 212

Creating LTI Models2-11You can specify this MIMO transfer matrix by typingN = {[1 –1];[1 2]}; % cell array for N(s)D = {[1 1];[1 4 5]}; % cell array f

Strany 213

13 SISO Design Tool Reference13-24Current CompensatorThe Current Compensator panel shows the structure of the compensator youare designing. The defaul

Strany 214

Feedback Structure13-25Feedback StructureTo the right of the Current Compensator panel is the Feedback Structurepanel, which is shown in its default c

Strany 215

13 SISO Design Tool Reference13-26Root Locus Right-Click MenusNote Click on items in the right-click menu pictured below to get helpcontents..Note th

Strany 216

Root Locus Right-Click Menus13-27•Complex Zero•Differentiator (zero at 0)•Lead•Lag•NotchIn all but the integrator and differentiator, once you select

Strany 217

13 SISO Design Tool Reference13-28Design ConstraintsSelect Design Constraints to open the Design Constraints window, which isshown below.You have the

Strany 218 - LQG Design for the x-Axis

Root Locus Right-Click Menus13-29ZoomSelecting Zoom opens this submenu.You have the following zooming options:•X-Y — Enlarge a selected area in the X-

Strany 219

13 SISO Design Tool Reference13-30PropertiesProperties opens the Property Editor for the root locus. This picture showsthe open window.You can use thi

Strany 220

Bode Diagram Right-Click Menus13-31Bode Diagram Right-Click MenusNote Click on items in the right-click menu pictured below to get helpcontents..AddT

Strany 221

13 SISO Design Tool Reference13-32•Lead•Lag•NotchIn all but the integrator and differentiator, once you select the configuration,your cursor changes t

Strany 222

Bode Diagram Right-Click Menus13-33ShowUse Show to select/deselect the display of magnitude, phase, and stabilitymargins. This figure displays the Sho

Strany 223

iContents1Introduction2LTI ModelsLTIModels... 2-2UsingLTIModelsintheControlSystemToolbox... 2-3LTIObjec

Strany 224

2 LTI Models2-12Zero-Pole-Gain ModelsThis section explains how to specify continuous-time SISO and MIMOzero-pole-gain models. The specification for di

Strany 225 - LQG Design for the y-Axis

13 SISO Design Tool Reference13-34•In-Y — Zoom in, Y-axis only. To do this, select In-Y, hold down your mouse’sleft button, and drag vertically to cre

Strany 226

Status Panel13-35Status PanelThe Status Panel is located at the bottom of the SISO Design Tool. It displaysthe most recent actionyou have performedand

Strany 227 - Cross-Coupling Between Axes

13 SISO Design Tool Reference13-36

Strany 228

14LTI Viewer ReferenceLTI Viewer ...14-2LTI Viewer Menu Bar ...14-4Right-Click Menus for SISO Systems ...14-12Righ

Strany 229

14 LTI Viewer Reference14-2LTI ViewerThe LTI Viewer is a graphical user interface (GUI) that supports ten plotresponses, including step, impulse, Bode

Strany 230

LTI Viewer14-3Figure 14-1: The LTI Viewer and Right-Click Menus for SISO and MIMO/LTI Array Models. Click on the Plots or the Menus for Help Contents

Strany 231

14 LTI Viewer Reference14-4LTI Viewer Menu BarNote Click on File, Edit, Window,orHelp on the menu bar pictured belowto get help on the menu items.Thi

Strany 232

LTI Viewer Menu Bar14-5•Import and export models•SetplotpreferencesforalltheplotsgeneratedbytheControlSystemToolbox•Print response plots•Close the LTI

Strany 233

14 LTI Viewer Reference14-6b Hold the Control key and click on individual variables.c Hold the Shift key while clicking, to select a range.•Press theO

Strany 234 - Kalman Filtering

LTI Viewer Menu Bar14-7Print to FigurePrint to Figure sends a picture of the selected system to a new figure window.Note that this new figure is a MAT

Strany 235 - Steady-State Design

Creating LTI Models2-131 Defining the variable s as a ZPK models = zpk('s')2 Entering the transfer function as a rational expression in s.Fo

Strany 236

14 LTI Viewer Reference14-8Plot Configurations WindowPlot Configuration under the Edit menu opens the Plot Configurationswindow.There are six possible

Strany 237

LTI Viewer Menu Bar14-9SystemsThe Systems menu item has two selections, Refresh and Delete. This figureshows the two options.Refreshupdatesimportedmod

Strany 238

14 LTI Viewer Reference14-10a Click and drag over several variables in the list.b Hold the Control key and click on individual variables.c Hold the Sh

Strany 239 - Now simulate with lsim

LTI Viewer Menu Bar14-11Setting PreferencesYou can use the “Distinguish by” matrix to specify the line property that willvary throughout the response

Strany 240

14 LTI Viewer Reference14-12Right-Click Menus for SISO SystemsNote Click on items in the right-click menu pictured below for help contents.This right

Strany 241 - Time-Varying Kalman Filter

Right-Click Menus for SISO Systems14-13Plot TypeSelect which plot type you want to display. The LTI Viewer shows a check tomark which plot is currentl

Strany 242

14 LTI Viewer Reference14-14SystemsUse Systems to select which of the imported systems to display. Selecting asystemcauses a check mark to appear besi

Strany 243

Right-Click Menus for SISO Systems14-15Step ResponseStep plots the model’s response to a step input.You can display the following types of information

Strany 244

14 LTI Viewer Reference14-16Impulse ResponseImpulse Response plots the model’s response to an impulse.The LTI Viewer can display the following types o

Strany 245

Right-Click Menus for SISO Systems14-17Bode DiagramBode plots the open-loop Bode phase and magnitude diagrams for the model.The LTI Viewer can display

Strany 246

2 LTI Models2-14K = [–1 3;2 0];H = zpk(Z,P,K)creates the two-input/two-output zero-pole-gain modelNotice that you use[] as a place-holder in Z (or P

Strany 247 - Reliable Computations

14 LTI Viewer Reference14-18Bode MagnitudeBode Magnitude plots the Bode magnitude diagram for the model.The LTI Viewer can display thePeak Response, w

Strany 248 - 11 Reliable Computations

Right-Click Menus for SISO Systems14-19Nyquist Diagrams Nyquist plots the Nyquist diagram for the model.The LTI Viewer can display the following types

Strany 249

14 LTI Viewer Reference14-20Nichols ChartsNichols plots the Nichols Chart for the model.The LTI Viewer can display the following types of information

Strany 250

Right-Click Menus for SISO Systems14-21SigmaSigma plots the singular values for the model.The LTI Viewer can display thePeak Response, which is the la

Strany 251

14 LTI Viewer Reference14-22Pole/ZeroPole/Zero plots the poles and zeros of the model with ‘x’ for poles and ‘o’ forzeros. There are noCharacteristics

Strany 252 - Numerical Stability

Right-Click Menus for SISO Systems14-23Out restores the previous appearance of the plot. Note that Out is grey whenyou have reached the limit of zoomi

Strany 253

14 LTI Viewer Reference14-24Right-Click Menus for MIMO and LTI ArraysAll of the menu options described in “Right-Click Menus for SISO Systems”hold whe

Strany 254 - Choice of LTI Model

Right-Click Menus for MIMO and LTI Arrays14-25Axis GroupingYoucanusseAxisGroupingtochangethe grouping ofplots inyourLTIViewer.This picture shows the m

Strany 255

14 LTI Viewer Reference14-26default, all the I/O pairs are selected. If you click on a button, that I/O pairalone is displayed in the LTI Viewer. The

Strany 256

Status Panel14-27Status PanelThe Status Panel is located at the bottom of the LTI Viewer. It contains usefulinformation about changes you have made to

Strany 257

Creating LTI Models2-15As an illustration, consider the following simple model of an electric motor.where istheangulardisplacementoftherotorand thedri

Strany 258

14 LTI Viewer Reference14-28

Strany 259 - Zero-Pole-Gain Models

15Right-Click Menus forResponse PlotsRight-Click Menus for SISO Systems ...15-4Systems ...15-4Characteristics ...

Strany 260

15 Right-Click Menus for Response Plots15-2All the response plots that the Control System Toolbox creates haveright-clickmenus available. The plots in

Strany 261

15-3- regroup the plots- Select subsets of I/O pairs

Strany 262

15 Right-Click Menus for Response Plots15-4Right-Click Menus for SIXXSO SystemsWhen you create a response plot for a SISO system, you have available a

Strany 263

Right-Click Menus for SIXXSO Systems15-5GridThe Grid command activates a grid appropriate to the plot in the region youselect.initialPeak Responsenich

Strany 264

15 Right-Click Menus for Response Plots15-6ZoomThe Zoom command zooms in and out of the plot region selected.There are four options:•In-X — Zoom in on

Strany 265 - GUI Reference

Right-Click Menus for SIXXSO Systems15-7For a full description of the Property Editor, see Setting Response PlotProperties online.

Strany 266 - 12 GUI Reference

15 Right-Click Menus for Response Plots15-8Right-Click Menus for MIMO and LTI ArraysAll of the menu options described in “Right-Click Menus for SIXXSO

Strany 267 - Reference

Right-Click Menus for MIMO and LTI Arrays15-9•None — By default,thereisnoaxisgrouping.Forexample,ifyoudisplaythestep responses for a 3-input, 2- outpu

Strany 268 - 13 SISO Design Tool Reference

2 LTI Models2-16In addition to the A, B, C,andD matrices, the display of state-space modelsincludes state names, input names, and output names. Defaul

Strany 269

15 Right-Click Menus for Response Plots15-10

Strany 270 - Menu Bar

16Function ReferenceFunctions by Category ...16-3

Strany 271 - System Data

16 Function Reference16-2This chapter contains detailed descriptions of all Control System Toolboxfunctions. It begins with a list of functions groupe

Strany 272 - Exporting to the Workspace

Functions by Category16-3Functions by Category Table 16-1: LTI ModelsFunction Name DescriptiondrssGenerate random discrete state-space modeldssCreate

Strany 273 - Exporting to a MAT-file

16 Function Reference16-4Table 16-2: Model CharacteristicsFunction Name DescriptionclassDisplay model type ('tf', 'zpk', 'ss

Strany 274

Functions by Category16-5padeCompute the Padé approximation of delaysreshapeChange the shape of an LTI arrayresidueProvide partial fraction expansions

Strany 275 - Root Locus and Bode Diagrams

16 Function Reference16-6obsvObservability matrixobsvfObservability staircase formss2ssState coordinate transformation.ssbalDiagonal balancing of stat

Strany 276

Functions by Category16-7Table 16-7: Model InterconnectionsFunction Name DescriptionappendAppend models in a block diagonal configurationaugstateAugm

Strany 277

16 Function Reference16-8Table 16-9: Time DelaysFunction Name Descriptiondelay2zConvert delays in discrete-time models or FRD modelspadeCompute the P

Strany 278

Functions by Category16-9nyquistCalculate Nyquist plotsigmaCalculate singular value plotTable 16-11: SISO Feedback DesignFunction Name Descriptionall

Strany 279 - Customizing Loop Responses

Creating LTI Models2-17Frequency Response Data (FRD) Models Insomeinstances, you may only have sampled frequency responsedata, ratherthan a transfer f

Strany 280

16 Function Reference16-10lqryCalculate the LQ-optimal gain with outputweightinglqrdCalculate the discrete LQ gain for continuousmodelskalmanCalculate

Strany 281 - Conversion domain

acker16-1116ackerPurpose Pole placement design for single-input systemsSyntax k = acker(A,b,p)Description Given the single-input systemand a vectorp o

Strany 282

allmargin16-1216allmarginPurpose Compute all crossover frequencies and corresponding stability marginsSyntax S = allmargin(sys)Description allmargin c

Strany 283 - Compensator

append16-1316appendPurpose Group LTI models by appending their inputs and outputsSyntax sys = append(sys1,sys2,...,sysN)Description append appends the

Strany 284

append16-14Arguments The input arguments sys1,..., sysN can be LTI models of any type. Regularmatrices are also accepted as a representation of static

Strany 285 - Changing the format

append16-15 y2 0 0 y3 0 3.00000 d = u1 u2 u3

Strany 286 - Deleting poles and zeros

augstate16-1616augstatePurpose Append the state vector to the output vectorSyntax asys = augstate(sys)Description Given a state-space model sys with e

Strany 287 - Retrieve

balreal16-1716balrealPurpose Input/output balancing of state-space realizationsSyntax sysb = balreal(sys)[sysb,g,T,Ti] = balreal(sys)Description sysb

Strany 288

balreal16-18 1.0062e-01 6.8039e-05 1.0055e-05which indicates that the last two states of sysb are weakly coupled tothe inputand output. You can

Strany 289 - Tool Bar

balreal16-19bode(sys,'-',sysr,'x')Algorithm Consider the modelwith controllability and observability grammians and . The statecoor

Strany 290 - Current Compensator

2 LTI Models2-18•response is a vector of length Nf of complex frequency response values forthese frequencies.•units is an optional string for the unit

Strany 291 - Feedback Structure

balreal16-20The function balreal computes a particular similarity transformationsuch thatSee [1,2] for details on the algorithm.Limitations The LTI mo

Strany 292 - Root Locus Right-Click Menus

bode16-2116bodePurpose Compute the Bode frequency response of LTI modelsSyntax bode(sys)bode(sys,w)bode(sys1,sys2,...,sysN)bode(sys1,sys2,...,sysN,w)b

Strany 293 - Edit Compensator

bode16-22uses red dashed lines for the first system sys1 and green 'x' markers for thesecond systemsys2.When invoked with left-hand argument

Strany 294 - Natural Frequency

bode16-23by typingg = tf([1 0.1 7.5],[1 0.12 9 0 0]);bode(g)To plot the response on a wider frequency range, for example, from 0.1 to 100rad/sec, type

Strany 295

bode16-24bode(g,'r',gd,'b--')Algorithm For continuous-time systems, bode computes the frequency response byevaluating the transfer

Strany 296

bode16-25where is the sample time. is called the Nyquist frequency.Theequivalent “continuous-time frequency” is thenusedas the -axis variable.Becausei

Strany 297

bodemag16-2616bodemagPurpose Compute the Bode magnitude response of LTI modelsSyntax bodemag(sys)bodemag(sys,{wmin,wmax})bodemag(sys,w)bodemag(sys1,sy

Strany 298

c2d16-2716c2dPurpose Discretize continuous-time systemsSyntax sysd = c2d(sys,Ts)sysd = c2d(sys,Ts,method)[sysd,G] = c2d(sys,Ts,method)Description sysd

Strany 299 - Zoom opens this submenu

c2d16-28Example Consider the systemwith input delay second. To discretize this system using thetriangle approximation with sample time second, typeH =

Strany 300

c2d16-29step(H,'-',Hd,'--')See Also d2c Discrete to continuous conversiond2d Resampling of discrete systems-References [1] Frankli

Strany 301 - Status Panel

Creating LTI Models2-19Discrete-Time ModelsCreating discrete-time models is very much like creating continuous-timemodels, except that you must also s

Strany 302

canon16-3016canonPurpose Compute canonical state-space realizationsSyntax csys = canon(sys,'type')[csys,T] = canon(sys,'type')Desc

Strany 303

canon16-31For state-space models sys,[csys,T] = canon(a,b,c,d,'type')also returns the state coordinate transformation T relating the origina

Strany 304 - 14 LTI Viewer Reference

care16-3216carePurpose Solve continuous-time algebraic Riccati equations (CARE)Syntax [X,L,G,rr] = care(A,B,Q)[X,L,G,rr] = care(A,B,Q,R,S,E)[X,L,G,rep

Strany 305

care16-33• The relative residual defined above when the solution exists (success)Alternatively,[X1,X2,L,report] = care(A,B,Q,...,'implicit')

Strany 306 - LTI Viewer Menu Bar

care16-34 -3.4495 -3.5026 1.4495 -1.4370Finally, note that the variable l contains the closed-loop eigenvalueseig(a-b*g).ll = -3.5026 -1.

Strany 307 - Import Using the LTI Browser

care16-35have no eigenvalue on the imaginary axis. Sufficient conditions for this to holdare detectable when and , orSee Also dare Solve discrete-time

Strany 308

chgunits16-3616chgunitsPurpose Convert the frequency units of an FRD modelSyntax sys = chgunits(sys,units) Description sys = chgunits(sys,units) conve

Strany 309

connect16-3716connectPurpose Derive state-space model from block diagram descriptionSyntax sysc = connect(sys,Q,inputs,outputs)Description Complex dyn

Strany 310

connect16-38inputs = [1 2 15]; outputs = [2 7]; The final model sysc has these particular inputs and outputs.Sinceitiseasytomakeamistakeenteringallthe

Strany 311

connect16-39-13.5009 18.0745];D = [-.5476 -.1410-.6459 .2958 ];Define the three blocks as individual LTI models.sys1 = tf(10,[1 5],'inputname&

Strany 312

2 LTI Models2-20By convention, the sample time of continuous-time models is Ts = 0.SettingTs = –1 leaves the sample time of a discrete-time model unsp

Strany 313 - Ordering Properties

connect16-40 d = uc u1 u2 ? ? 0 0 0 0

Strany 314

connect16-41 uc u1 x1 4 0 x2 0 -0.076001 x3

Strany 315 - Plot Type

covar16-4216covarPurpose Output and state covariance of a system driven by white noiseSyntax [P,Q] = covar(sys,W)Description covar calculates the stat

Strany 316

covar16-43p =30.3167You can compare this output of covar to simulation results.randn('seed',0)w = sqrt(5)∗randn(1,1000); % 1000 samples% Sim

Strany 317 - Step Response

covar16-44Note that is well defined for nonzero in the discrete case.Limitations The state and output covariances are defined for stable systems only.

Strany 318 - Impulse Response

ctrb16-4516ctrbPurpose Form the controllability matrixSyntax Co = ctrb(A,B)Co = ctrb(sys)Description ctrb computes the controllability matrix for stat

Strany 319 - Bode Diagram

ctrb16-46Limitations Estimating the rank of the controllability matrix is ill-conditioned; that is, it isvery sensitive to round-off errors and errors

Strany 320 - Bode Magnitude

ctrbf16-4716ctrbfPurpose Compute the controllability staircase formSyntax [Abar,Bbar,Cbar,T,k] = ctrbf(A,B,C)[Abar,Bbar,Cbar,T,k] = ctrbf(A,B,C,tol)De

Strany 321 - Nyquist Diagrams

ctrbf16-48B = 1 -1 1 -1C = 1 0 0 1and locate the uncontrollable mode.[Abar,Bbar,Cbar,T,k]=ctrbf(A,B,C)Abar = -3.0000

Strany 322 - Nichols Charts

d2c16-4916d2cPurpose Convert discrete-time LTI models to continuous timeSyntax sysc = d2c(sysd)sysc = d2c(sysd,method)Description d2c converts LTI mod

Strany 323 - , which is the largest

Creating LTI Models2-21creates the same TF model asH = tf([1 2], [1 0.6 0.9], 0.1);Similarly,z = zpk('z', 0.1);H = [z/(z+0.1)/(z+0.2) ; (z^2

Strany 324 - Pole/Zero

d2c16-50c2d(Hc,0.1,'tustin')gives back the original .Algorithm The 'zoh' conversion is performed in state space and relies on the

Strany 325 - Properties

d2c16-51c2d(Hc,Ts)yieldingZero/pole/gain: (z+0.5) (z+0.2)-------------------------(z+0.5)^2 (z^2 + z + 0.4) Sampling time: 0.1This discrete model

Strany 326

d2d16-5216d2dPurpose Resample discrete-time LTI models or add input delaysSyntax sys1 = d2d(sys,Ts)Description sys1 = d2d(sys,Ts) resamples the discre

Strany 327 - I/O Selector

damp16-5316dampPurpose Compute damping factors and natural frequenciesSyntax [Wn,Z] = damp(sys)[Wn,Z,P] = damp(sys)Description damp calculates the dam

Strany 328

damp16-54damp(H)and MATLAB returnsEigenvalue Damping Freq. (rad/s) -1.00e+000

Strany 329

dare16-5516darePurpose Solve discrete-time algebraic Riccati equations (DARE)Syntax [X,L,G,rr] = dare(A,B,Q,R)[X,L,G,rr] = dare(A,B,Q,R,S,E)[X,L,G,rep

Strany 330

dare16-56and L = eig(A-B*G,E).Two additional syntaxes are provided to help develop applications such as-optimal control design.[X,L,G,report] = dare(A

Strany 331 - Response Plots

dare16-57References [1] Arnold, W.F., III and A.J. Laub, “Generalized Eigenproblem Algorithmsand Software for Algebraic Riccati Equations,” Proc. IEEE

Strany 332

dcgain16-5816dcgainPurpose Compute low frequency (DC) gain of LTI systemSyntax k = dcgain(sys)Description k = dcgain(sys) computes the DC gain k of th

Strany 333 - - Select subsets of I/O pairs

delay2z16-5916delay2zPurpose Replace delays of discrete-time TF, SS, or ZPK models by poles at z=0, orreplace delays of FRD models by a phase shiftSyn

Strany 334 - Characteristics

iiTime Delays ... 2-43Supported Functionality . . . ... 2-43SpecifyingInput/OutputDelays

Strany 335

2 LTI Models2-22clashes with the “descending powers of ”conventionassumedbytf (see“Transfer Function Models” on page 2-8, ortf). For example,h = tf([1

Strany 336

dlqr16-6016dlqrPurpose Design linear-quadratic (LQ) state-feedback regulator for discrete-time plantSyntax [K,S,e] = dlqr(a,b,Q,R)[K,S,e] = dlqr(a,b,Q

Strany 337 - Properties online

dlqr16-61lqr State-feedback LQ regulator for continuous plantlqrd Discrete LQ regulator for continuous plantlqry State-feedback LQ regulator with outp

Strany 338

dlyap16-6216dlyapPurpose Solve discrete-time Lyapunov equationsSyntax X = dlyap(A,Q)Description dlyap solves the discrete-time Lyapunov equationwhere

Strany 339

drss16-6316drssPurpose Generate stable random discrete test modelsSyntax sys = drss(n)sys = drss(n,p)sys = drss(n,p,m)sys = drss(n,p,m,s1,...sn)Descri

Strany 340

drss16-64c = x1 x2 x3 y1 0.22595 0.76037 0 y2 0

Strany 341

dsort16-6516dsortPurpose Sort discrete-time poles by magnitudeSyntax s = dsort(p)[s,ndx] = dsort(p)Description dsort sorts the discrete-time poles con

Strany 342 - 16 Function Reference

dss16-6616dssPurpose Specify descriptor state-space modelsSyntax sys = dss(a,b,c,d,e)sys = dss(a,b,c,d,e,Ts)sys = dss(a,b,c,d,e,ltisys)sys = dss(a,b,c

Strany 343 - Functions by Category

dss16-67sys = dss(1,2,3,4,5,'td',0.1,'inputname','voltage',...'notes','Just an example')creates the

Strany 344

dssdata16-6816dssdataPurpose Quick access to descriptor state-space dataSyntax [a,b,c,d,e] = dssdata(sys)[a,b,c,d,e,Ts] = dssdata(sys)Description [a,b

Strany 345

esort16-6916esortPurpose Sort continuous-time poles by real partSyntax s = esort(p)[s,ndx] = esort(p)Description esort sorts the continuous-time poles

Strany 346

Creating LTI Models2-23Data RetrievalThe functions tf, zpk, ss,andfrd pack the model data and sample time in asingleLTI object.Conversely,thefollowing

Strany 347

esort16-70zero Compute (transmission) zeros

Strany 348

estim16-7116estimPurpose Form state estimator given estimator gainSyntax est = estim(sys,L)est = estim(sys,L,sensors,known)Description est = estim(sys

Strany 349

estim16-72estim handles both continuous- and discrete-time cases. You can use thefunctionsplace (pole placement) or kalman (Kalman filtering) to desig

Strany 350

evalfr16-7316evalfrPurpose Evaluate frequency response at a single (complex) frequencySyntax frsp = evalfr(sys,f)Description frsp = evalfr(sys,f) eval

Strany 351

feedback16-7416feedbackPurpose Feedback connection of two LTI modelsSyntax sys = feedback(sys1,sys2)sys = feedback(sys1,sys2,sign)sys = feedback(sys1,

Strany 352 - Syntax S = allmargin(sys)

feedback16-75computes a closed-loop model sys for the more general feedback loop.The vectorfeedin contains indices into the input vector of sys1 and s

Strany 353 - 16append

feedback16-76Examples Example 1To connect the plantwith the controllerusing negative feedback, typeG = tf([2 5 1],[1 2 3],'inputname','

Strany 354

feedback16-77Example 2Consider a state-space plant P with five inputs and four outputs and astate-spacefeedbackcontrollerK withthreeinputsandtwooutput

Strany 355 - Series connection

filt16-7816filtPurpose Specify discrete transfer functions in DSP formatSyntax sys = filt(num,den)sys = filt(num,den,Ts)sys = filt(M)sys = filt(num,de

Strany 356 - Syntax asys = augstate(sys)

filt16-79MIMO transfer functions are regarded as arrays of SISO transfer functions(one per I/O channel), each of which is characterized by its numerat

Strany 357 - Syntax sysb = balreal(sys)

2 LTI Models2-24 1 2 10Note that the same result is obtained usingH.num{1,1}, H.den{1,1}See“DirectPropertyReferencing”on page2-31formoreinf

Strany 358

frd16-8016frdPurpose Create a frequency response data (FRD) object or convert another model typeto an FRD modelSyntax sys = frd(response,frequency)sys

Strany 359 - Phase (deg); Magnitude (dB)

frd16-81sysfrd = frd(sys,frequency,'Units',units)convertsanFRDmodelfrom aTF, SS, or ZPK model while specifying the units forfrequency to be

Strany 360

frd16-82tf Create transfer functionszpk Create zero-pole-gain models

Strany 361 - Syntax bode(sys)

frdata16-8316frdataPurpose Quick access to data for a frequency response data objectSyntax [response,freq] = frdata(sys)[response,freq,Ts] = frdata(sy

Strany 362

frdata16-84 2.4359 - 4.3665ifreq = 10 100See Also frd Create or convert to FRD modelsget Get the properties for an LTI modelset Set model prope

Strany 363

freqresp16-8516freqrespPurpose Compute frequency response over grid of frequenciesSyntax H = freqresp(sys,w)Description H = freqresp(sys,w) computes t

Strany 364

freqresp16-86at the frequencies . Typew = [1 10 100]H = freqresp(P,w)H(:,:,1) = 0 0.5000- 0.5000i -0.2000+ 0.6000i 1.0000

Strany 365

freqresp16-87Algorithm For transfer functions or zero-pole-gain models, freqresp evaluates thenumerator(s) and denominator(s) at the specified frequen

Strany 366 - Syntax bodemag(sys)

gensig16-8816gensigPurpose Generate test input signals for lsimSyntax [u,t] = gensig(type,tau)[u,t] = gensig(type,tau,Tf,Ts)Description [u,t] = gensig

Strany 367 - Syntax sysd = c2d(sys,Ts)

gensig16-89axis([0 30 -1 2])See Also lsim Simulate response to arbitrary inputs0 5 10 15 20 25 30−1−0.500.511.52

Strany 368 - Example Consider the system

LTI Properties2-25LTI PropertiesThe previous section shows how to create LTI objects that encapsulate themodel data and sample time. You also have the

Strany 369

get16-9016getPurpose Access/query LTI property valuesSyntax Value = get(sys,'PropertyName')get(sys)Struct = get(sys)Description Value = get(

Strany 370 - Companion Form

get16-91 Notes = {} UserData = 'hello'or query only about the numerator and sample time values byget(h,'num')ans =

Strany 371

gram16-9216gramPurpose Compute controllability and observability state-spacemodels:descriptor;state-space models:quick data retrievalgrammiansSyntax W

Strany 372

gram16-93to compute the grammians of a continuous or discrete system. The LTI modelsys must be in state-space form.Algorithm The controllability gramm

Strany 373 - Examples Example 1

hasdelay16-9416hasdelayPurpose Test if an LTI model has time delaysSyntax hasdelay(sys)Description hasdelay(sys) returns 1 (true) if the LTI model sys

Strany 374 - Example 2

impulse16-9516impulsePurpose Compute the impulse response of LTI modelsSyntax impulse(sys)impulse(sys,t)impulse(sys1,sys2,...,sysN)impulse(sys1,sys2,.

Strany 375

impulse16-96As with bode or plot, you can specify a particular color, linestyle, and/ormarker for each system, for example,impulse(sys1,'y:'

Strany 376 - Example w = logspace(1,2,2);

impulse16-97sys = ss(a,b,c,0);impulse(sys)The left plot shows the impulse response of the first input channel, and theright plot shows the impulse res

Strany 377 - 16connect

impulse16-98Algorithm Continuous-time models are first converted to state space. The impulseresponse of a single-input state-space modelis equivalent

Strany 378

initial16-9916initialPurpose Compute the initial condition response of state-space modelsSyntax initial(sys,x0)initial(sys,x0,t)initial(sys1,sys2,...,

Strany 379

2 LTI Models2-26ThesampletimepropertyTs keeps track of the sample time (in seconds) ofdiscrete-time systems. By convention,Ts is 0 (zero) for continuo

Strany 380

initial16-100initial(sys1,sys2,...,sysN,x0) initial(sys1,sys2,...,sysN,x0,t)(see impulse for details).When invoked with lefthand arguments,[y,t,x] = i

Strany 381

initial16-101initial(sys,x0)See Also impulse Impulse responselsim Simulate response to arbitrary inputsltiview LTIsystemviewerstep Step response

Strany 382 - Syntax [P,Q] = covar(sys,W)

interp16-10216interpPurpose Interpolate an FRD model between frequency pointsSyntax isys = interp(sys,freqs) interpolates the frequency response datac

Strany 383

inv16-10316invPurpose Invert LTI systemsSyntax isys = inv(sys)Description inv inverts the input/output relationto produce the LTI system with the tran

Strany 384

inv16-104H * Hiis the identity transfer function (static gain I).Limitations Do not use inv to model feedback connections such asWhile it seems reason

Strany 385 - Syntax Co = ctrb(A,B)

isct, isdt16-10516isct, isdtPurpose Determine whether an LTI model is continuous or discreteSyntax boo = isct(sys)boo = isdt(sys)Description boo = isc

Strany 386

isempty16-10616isemptyPurpose Test if an LTI model is emptySyntax boo = isempty(sys)Description isempty(sys) returns 1 (true) if the LTI model sys has

Strany 387

isproper16-10716isproperPurpose Test if an LTI model is properSyntax boo = isproper(sys)Description isproper(sys) returns 1 (true) if the LTI model sy

Strany 388

issiso16-10816issisoPurpose Test if an LTI model is single-input/single-output (SISO)Syntax boo = issiso(sys)Description issiso(sys) returns 1 (true)

Strany 389 - Syntax sysc = d2c(sysd)

kalman16-10916kalmanPurpose Design continuous- or discrete-time Kalman estimatorSyntax [kest,L,P] = kalman(sys,Qn,Rn,Nn)[kest,L,P,M,Z] = kalman(sys,Qn

Strany 390

LTI Properties2-27following four tables. The property values differ for LTI arrays. See set formore information on these values.Table 2-5: TF-Specifi

Strany 391

kalman16-110the output and state estimates and . Note that estimates the true plantoutputDiscrete-Time EstimationGiven the discrete plantand the noise

Strany 392 - Syntax sys1 = d2d(sys,Ts)

kalman16-111andgeneratesoptimal“current”outputandstateestimates andusing all available measurements including . The gain matrices andare derived by so

Strany 393 - Syntax [Wn,Z] = damp(sys)

kalman16-112for more general plants sys where the known inputs and stochastic inputsare mixed together, and not all outputs are measured. The index ve

Strany 394

kalmd16-11316kalmdPurpose Design discrete Kalman estimator for continuous plantSyntax [kest,L,P,M,Z] = kalmd(sys,Qn,Rn,Ts)Description kalmd designs a

Strany 395

kalmd16-114lqgreg Assemble LQG regulatorlqrd Discrete LQ-optimal gain for continuous plant References [1]Franklin, G.F.,J.D.Powell, and M.L. Workman,

Strany 396

lft16-11516lftPurpose Redheffer star product (linear fractional transformation) of two LTI modelsSyntax sys = lft(sys1,sys2)sys = lft(sys1,sys2,nu,ny)

Strany 397 - 1746–1754

lft16-116produces:• The lower LFT ofsys1 and sys2 if sys2 has fewer inputs and outputs thansys1. This amounts to deleting and in the above diagram.• T

Strany 398 - 16dcgain

lqgreg16-11716lqgregPurpose Form LQG regulator given state-feedback gain and Kalman estimatorSyntax rlqg = lqgreg(kest,k)rlqg = lqgreg(kest,k,'cu

Strany 399

lqgreg16-118In discrete time, you can form the LQG regulator using either the predictionof basedonmeasurementsup to , or thecurrentstateestimate based

Strany 400

lqgreg16-119• Discrete regulator for continuous plant: use lqrd and kalmd.In discrete time,lqgreg produces the regulatorbydefault(see“Description”).To

Strany 401

2 LTI Models2-28Most of these properties are dedicated to storing the model data. Note that thematrix is set to[] (the empty matrix) for standard stat

Strany 402 - Syntax X = dlyap(A,Q)

lqgreg16-120See Also kalman Kalman estimator designkalmd Discrete Kalman estimator for continuous plantlqr, dlqr State-feedback LQ regulatorlqrd Discr

Strany 403 - Syntax sys = drss(n)

lqr16-12116lqrPurpose Design linear-quadratic (LQ) state-feedback regulator for continuous plantSyntax [K,S,e] = lqr(A,B,Q,R)[K,S,e] = lqr(A,B,Q,R,N)D

Strany 404

lqrd16-12216lqrdPurpose Design discrete LQ regulator for continuous plantSyntax [Kd,S,e] = lqrd(A,B,Q,R,Ts)[Kd,S,e] = lqrd(A,B,Q,R,N,Ts)Description lq

Strany 405

lqrd16-123the discretized plant has equationsand the weighting matrices for the equivalent discrete cost function areThe integrals are computed using

Strany 406 - Example The command

lqry16-12416lqryPurpose Linear-quadratic (LQ) state-feedback regulator with output weightingSyntax [K,S,e] = lqry(sys,Q,R)[K,S,e] = lqry(sys,Q,R,N)Des

Strany 407

lsim16-12516lsimPurpose Simulate LTI model response to arbitrary inputsSyntax lsim(sys,u,t)lsim(sys,u,t,x0)lsim(sys,u,t,x0,'zoh')lsim(sys,u,

Strany 408 - 16dssdata

lsim16-126linear interpolation). By default, lsim selects the interpolation methodautomatically based on the smoothness of the signal U.Finally,lsim(s

Strany 409

lsim16-127H = [tf([2 5 1],[1 2 3]) ; tf([1 -1],[1 1 5])]lsim(H,u,t)Algorithm Discrete-time systems are simulated with ltitr (state space) or filter(tr

Strany 410 - Compute (transmission) zeros

lsim16-128w2 = 62.83^2h = tf(w2,[1 2 w2])t = 0:0.1:5; % vector of time samplesu = (rem(t,1)>=0.5); % square wave valueslsim(h,u,t)lsimevaluates th

Strany 411 - Syntax est = estim(sys,L)

lsim16-129lsim(hd,us,ts)This response exhibits strong oscillatory behavior hidden from theundersampled version.See Also gensig Generate test input sig

Strany 412

LTI Properties2-29The function set for LTI objects follows the same syntax as its HandleGraphics counterpart. Specifically, each property is updated b

Strany 413 - 16evalfr

ltimodels16-13016ltimodelsPurpose Help on LTI modelsSyntax ltimodelsltimodels(modeltype)Description ltimodels displays general information on the vari

Strany 414

ltiprops16-13116ltipropsPurpose Help on LTI model propertiesSyntax ltimodelsltimodels(modeltype)Description ltiprops displays details on the generic p

Strany 415

ltiview16-13216ltiviewPurpose Initialize an LTI Viewer for LTI system response analysisSyntax ltiview ltiview(sys1,sys2,...,sysn)ltiview('plottyp

Strany 416

ltiview16-133ltiview(plottype,sys,extras) allows the additional input argumentssupported by the various LTI model response functions to be passed to t

Strany 417 - Example 3

ltiview16-134nichols Nichols responsenyquist Nyquist responsepzmap Pole/zero mapsigma Singular value responsestep Step response

Strany 418 - Syntax sys = filt(num,den)

lyap16-13516lyapPurpose Solve continuous-time Lyapunov equationsSyntax X = lyap(A,Q)X = lyap(A,B,C)Description lyap solves the special and general for

Strany 419 - Example Typing the commands

lyap16-136 References [1] Bartels, R.H. and G.W. Stewart, “Solution of the Matrix Equation AX + XB=C,”Comm. of the ACM, Vol. 15, No. 9, 1972.[2]Bryson

Strany 420

margin16-13716marginPurpose Compute gain and phase margins and associated crossover frequenciesSyntax [Gm,Pm,Wcg,Wcp] = margin(sys)[Gm,Pm,Wcg,Wcp] = m

Strany 421 - Example Type the commands

margin16-138Example You can compute the gain and phase margins of the open-loop discrete-timetransfer function. Typehd = tf([0.04798 0.0464],[1 -1.81

Strany 422 - Create zero-pole-gain models

margin16-139margin(hd)Algorithm The phase margin is computed using theory, and the gain margin bysolving for the frequency .See Also bode Bode frequen

Strany 423

2 LTI Models2-30Finally, you can also use the set command to obtain a listing of all settableproperties for a given LTI model type, along with valid v

Strany 424 - Set model properties

minreal16-14016minrealPurpose Minimal realization or pole-zero cancellationSyntax sysr = minreal(sys)sysr = minreal(sys,tol)[sysr,u] = minreal(sys,tol

Strany 425 - 16freqresp

minreal16-141Algorithm Pole-zero cancellation is a straightforward search through the poles and zeroslooking for matches that are within tolerance. Tr

Strany 426

modred16-14216modredPurpose Model order reductionSyntax rsys = modred(sys,elim)rsys = modred(sys,elim,'mdc')rsys = modred(sys,elim,'del

Strany 427

modred16-143The last three diagonal entries of the balanced grammians are small, soeliminate the last three states withmodred using both matched DC ga

Strany 428 - 16gensig

modred16-144step(h,'-',hmdc,'-.',hdel,'--')While hdel accurately reflects the transient behavior, only hmdc gives the tr

Strany 429

modred16-145Next, the derivative of is set to zero and the resulting equation is solved for. The reduced-order model is given byThe discrete-time case

Strany 430

ndims16-14616ndimsPurpose Provide the number of the dimensions of an LTI model or LTI arraySyntax n = ndims(sys)Description n = ndims(sys) is the numb

Strany 431

ngrid16-14716ngridPurpose Superimpose a Nichols chart on a Nichols plotSyntax ngridDescription ngrid superimposes Nichols chart grid lines over the Ni

Strany 432

ngrid16-148ngridSee Also nichols Nichols plots

Strany 433

nichols16-14916nicholsPurpose Compute Nichols frequency response of LTI modelsSyntax nichols(sys)nichols(sys,w)nichols(sys1,sys2,...,sysN)nichols(sys1

Strany 434 - Syntax hasdelay(sys)

LTI Properties2-31To display all of the properties of an LTI model sys (and their values), use thesyntaxget(sys). In this example,get(h)producesnum =

Strany 435 - Syntax impulse(sys)

nichols16-150[mag,phase,w] = nichols(sys)[mag,phase] = nichols(sys,w)return the magnitude and phase (in degrees) of the frequency response at thefrequ

Strany 436

nichols16-151The right-click menu for Nichols plots includes the Tight option under Zoom.You can use this to clip unbounded branches of the Nichols pl

Strany 437

norm16-15216normPurpose Compute LTI model normsSyntax norm(sys)norm(sys,2)norm(sys,inf)norm(sys,inf,tol)[ninf,fpeak] = norm(sys)Description norm compu

Strany 438

norm16-153Usage norm(sys) or norm(sys,2) both return the norm of the TF, SS, or ZPKmodelsys. This norm is infinite in the following cases:•sys is unst

Strany 439 - Syntax initial(sys,x0)

norm16-154ninf = 2.5488 fpeak = 3.0844These values are confirmed by the Bode plot of .bode(H)The gain indeed peaks at approximately 3 rad/sec an

Strany 440

norm16-155 8.1268Algorithm norm uses the same algorithm as covar for the norm, and the algorithm of[1] for the infinity norm.sys is first converted

Strany 441 - Step response

nyquist16-15616nyquistPurpose Compute Nyquist frequency response of LTI modelsSyntax nyquist(sys)nyquist(sys,w)nyquist(sys1,sys2,...,sysN)nyquist(sys1

Strany 442 - 16interp

nyquist16-157[re,im,w] = nyquist(sys)[re,im] = nyquist(sys,w)return the real and imaginary parts of the frequency response at thefrequenciesw (in rad/

Strany 443 - Example Consider

nyquist16-158nyquist(H)You have two zoom options available from the right-click menu that applyspecifically to Nyquist plots:•Tight —Clipsunbounded br

Strany 444

nyquist16-159Also, click anywhere on the curve toactivate data markers that displaytherealand imaginary values at a given frequency. This figure shows

Strany 445 - Syntax boo = isct(sys)

iiiTustinwithFrequencyPrewarping ... 3-23MatchedPolesandZeros... 3-23DiscretizationofSystemswithDelays ..

Strany 446 - Example Both commands

2 LTI Models2-32sys = ss(1,2,3,4,'InputName','u');sys.aand you get the value of the property “a” for the state-space model sys.ans

Strany 447 - Syntax boo = isproper(sys)

obsv16-16016obsvPurpose Form the observability matrixSyntax Ob = obsv(A,B)Ob = obsv(sys)Description obsv computes the observability matrix for state-s

Strany 448 - Syntax boo = issiso(sys)

obsv16-161MATLAB responds withunob = 0See Also obsvf Compute the observability staircase form

Strany 449 - 16kalman

obsvf16-16216obsvfPurpose Compute the observability staircase formSyntax [Abar,Bbar,Cbar,T,k] = obsvf(A,B,C)[Abar,Bbar,Cbar,T,k] = obsvf(A,B,C,tol)Des

Strany 450 - (Measurement noise)

obsvf16-163 1 -1 1 -1C = 1 0 0 1by typing[Abar,Bbar,Cbar,T,k] = obsvf(A,B,C)Abar = 1 1 4 -2Bbar = 1

Strany 451

ord216-16416ord2Purpose Generate continuous second-order systemsSyntax [A,B,C,D] = ord2(wn,z)[num,den] = ord2(wn,z)Description [A,B,C,D] = ord2(wn,z)

Strany 452

pade16-16516padePurpose Compute the Padé approximation of models with time delaysSyntax [num,den] = pade(T,N)pade(T,N)sysx = pade(sys,N)sysx = pade(sy

Strany 453

pade16-166You can use scalar values to specify uniform approximation orders, and [] ifthere are no input, output, or I/O delays.Example Compute a thir

Strany 454

pade16-167delay2z Changestransferfunctionsof discrete-timeLTImodelswithdelaystorationalfunctionsorabsorbsFRDdelaysinto the frequency response phase in

Strany 455 - Syntax sys = lft(sys1,sys2)

parallel16-16816parallelPurpose Parallel connection of two LTI modelsSyntax sys = parallel(sys1,sys2)sys = parallel(sys1,sys2,inp1,inp2,out1,out2)Desc

Strany 456

parallel16-169sys = parallel(sys1,sys2,inp1,inp2,out1,out2) forms the more generalparallel connection.The index vectorsinp1 and inp2 specify which inp

Strany 457 - Syntax rlqg = lqgreg(kest,k)

LTI Properties2-33Properties” on page 2-25. For detailed information on the use of InputDelay, OutputDelay,andioDelay, see “Time Delays” on page 2-43.

Strany 458

place16-17016placePurpose Pole placement designSyntax K = place(A,B,p)[K,prec,message] = place(A,B,p)Description Given the single- or multi-input syst

Strany 459

place16-171Algorithm place uses the algorithm of [1] which, for multi-input systems, optimizes thechoice of eigenvectors for a robust solution. We rec

Strany 460

pole16-17216polePurpose Compute the poles of an LTI systemSyntax p = pole(sys)Description pole computes the poles p of the SISO or MIMO LTI model sys.

Strany 461 - Syntax [K,S,e] = lqr(A,B,Q,R)

pzmap16-17316pzmapPurpose Compute the pole-zero map of an LTI modelSyntax pzmap(sys)pzmap(sys1,sys2,...,sysN)[p,z] = pzmap(sys)Description pzmap(sys)

Strany 462

pzmap16-174pzmap(H)Algorithm pzmap uses a combination of pole and zero.See Also damp Damping and natural frequency of system polesesort, dsort Sort sy

Strany 463

reg16-17516regPurpose Form regulator given state-feedback and estimator gainsSyntax rsys = reg(sys,K,L)rsys = reg(sys,K,L,sensors,known,controls)Descr

Strany 464

reg16-176This regulator should be connected to the plant using positive feedback.rsys = reg(sys,K,L,sensors,known,controls) handles more generalregula

Strany 465 - Syntax lsim(sys,u,t)

reg16-177Example Given a continuous-time state-space modelsys = ss(A,B,C,D) with seven outputs and four inputs, suppose you have designed:• A state-fe

Strany 466

reshape16-17816reshapePurpose Change the shape of an LTI arraySyntax sys = reshape(sys,s1,s2,...,sk)sys = reshape(sys,[s1 s2 ... sk])Description sys =

Strany 467

rlocus16-17916rlocusPurpose Evans root locusSyntax rlocus(sys)rlocus(sys,k)rlocus(sys1,sys2,...)[r,k] = rlocus(sys)r = rlocus(sys,k)Description rlocus

Strany 468

2 LTI Models2-34Sampling time: unspecifiedThe same result is obtained by using the Variable property.h = tf(1,[1 –1],'var','z')In

Strany 469

rlocus16-180the closed-loop poles are the roots ofrlocus adaptively selects a set of positive gains to produce a smooth plot.Alternatively,rlocus(sys,

Strany 470 - Syntax ltimodels

rlocus16-181rlocus(h)Youcanusetheright-clickmenuforrlocustoaddgridlines,zoominorout,and invoke the Property Editor to customize the plot. Also, click

Strany 471

rss16-18216rssPurpose Generate stable random continuous test modelsSyntax sys = rss(n)sys = rss(n,p)sys = rss(n,p,m)sys = rss(n,p,m,s1,...,sn)Descript

Strany 472 - Syntax ltiview

rss16-183 d = u1 u2 y1 -0.87631 -0.32758 y2 0 0 Continuous-time s

Strany 473 - See Also bode Bode response

series16-18416seriesPurpose Series connection of two LTI modelsSyntax sys = series(sys1,sys2)sys = series(sys1,sys2,outputs1,inputs2)Description serie

Strany 474 - Singular value response

series16-185Theindexvectorsoutputs1andinputs2 indicate which outputs of sys1 andwhich inputs ofsys2 should be connected. The resulting model sys hasas

Strany 475

set16-18616setPurpose Set or modify LTI model propertiesSyntax set(sys,'Property',Value)set(sys,'Property1',Value1,'Property2

Strany 476

set16-187get(sys)a = 1 b = 2 c = 3 d = 0 e = [] Nx = 1 StateName = {''} Ts = 0 Input

Strany 477 - 16margin

set16-188Table 16-17: LTI PropertiesProperty Name Admissible Property ValuesTs•0 (zero) for continuous-time systems•Sample time in seconds for discre

Strany 478

set16-189OutputDelayOutput delays specified with•Nonnegative real numbers for continuous-time models (seconds)•Integers for discrete-time models (numb

Strany 479

LTI Properties2-35Input Names and Output NamesYou can use the InputName and OutputName properties (in short, I/O names) toassign names to any or all o

Strany 480 - Example The commands

set16-190a, b, c, d, eReal-valued state-space matrices (multidimensional arrays, in the case ofLTI arrays) with compatible dimensions for the number o

Strany 481

set16-191Remark For discrete-time transfer functions, the convention used to represent thenumerator anddenominatordependson the choice of variable (se

Strany 482 - Purpose Model order reduction

set16-192However, if you change the Variable to 'z^-1' (or 'q')byset(h,'Variable','z^-1'),the same commandset(

Strany 483

sgrid16-19316sgridPurpose Generate an s-plane grid of constant damping factors and natural frequenciesSyntax sgridsgrid(z,wn)Description sgrid generat

Strany 484

sgrid16-194See Also pzmap Plot pole-zero maprlocus Plot root locuszgrid Generate z-plane grid lines

Strany 485

sigma16-19516sigmaPurpose Singular values of the frequency response of LTI modelsSyntax sigma(sys)sigma(sys,w)sigma(sys,w,type)sigma(sys1,sys2,...,sys

Strany 486 - Example sys = rss(3,1,1,3);

sigma16-196w = {wmin,wmax}. To use particular frequency points, set w to thecorresponding vector of frequencies. Uselogspace to generate logarithmical

Strany 487 - Syntax ngrid

sigma16-197Example Plot the singular value responses ofand .You can do this by typingH = [0 tf([3 0],[1 1 10]) ; tf([1 1],[1 5]) tf(2,[1 6])]subplot(2

Strany 488 - Nichols plots

sigma16-198sigma(H,[],2)Algorithm sigma uses the svd function in MATLAB to compute the singular values of acomplex matrix.See Also bode Bode plotevalf

Strany 489 - Syntax nichols(sys)

sisotool16-19916sisotoolPurpose Initialize the SISO Design ToolSyntax sisotoolsisotool(plant)sisotool(plant,comp)sisotool(views)sisotool(views,plant,c

Strany 490

2 LTI Models2-36s + 2----- sTo leave certain names undefined, use the empty string '' as inH = tf(num,den,'inputname',{ 'tem

Strany 491 - See Also bode Bode plot

sisotool16-200This picture shows the SISO Design Tool.sisotool(plant) opens the SISO Design Tool with plant imported. If yourplant is any SISO LTI obj

Strany 492

sisotool16-201For example sisotool('bode')opens a SISO Design Tool with only the Bode Diagrams on.sisotool(plant,comp,options) allows

Strany 493

size16-20216sizePurpose Provide the output/input/array dimensions of LTI models, the model order ofTF, SS, and ZPK models, and the number of frequenci

Strany 494

size16-203size(sys)3x1 array of state-space modelsEach model has 3 outputs, 2 inputs, and 5 states.See Also isempty Test if LTI model is emptyissiso T

Strany 495

sminreal16-20416sminrealPurpose Perform model reduction based on structureSyntax msys = sminreal(sys)Description msys = sminreal(sys) eliminates the s

Strany 496 - Syntax nyquist(sys)

sminreal16-205all of the states of sys, including those of sys2 are retained. To eliminate theunobservable states fromsys2, while retaining the states

Strany 497

ss16-20616ssPurpose Specify state-space models or convert an LTI model to state spaceSyntax sys = ss(a,b,c,d)sys = ss(a,b,c,d,Ts)sys = ss(d)sys = ss(a

Strany 498

ss16-207with sample time Ts (in seconds). Set Ts = -1 or Ts = [] to leave the sampletime unspecified.sys = ss(d) specifies a static gain matrix and is

Strany 499

ss16-208sys = ss(A,B,C,D,0.05,'statename',{'position' 'velocity'},...'inputname','force',...'no

Strany 500 - Example Determine if the pair

ss16-209See Also dss Specify descriptor state-space models.frd Specify FRD models or convert to an FRD.get Get properties of LTI models.set Set proper

Strany 501 - MATLAB responds with

LTI Properties2-37c = x1 y1 1.1909 y2 1.1892 y3 0 d =

Strany 502

ss2ss16-21016ss2ssPurpose State coordinate transformation for state-space modelsSyntax sysT = ss2ss(sys,T)Description Given a state-space model sys wi

Strany 503

ssbal16-21116ssbalPurpose Balance state-space models using a diagonal similarity transformationSyntax [sysb,T] = ssbal(sys)[sysb,T] = ssbal(sys,condT)

Strany 504 - Syntax [A,B,C,D] = ord2(wn,z)

ssbal16-212Balance this model with ssbal by typingssbal(sys)a = x1 x2 x3 x1 1

Strany 505 - Syntax [num,den] = pade(T,N)

ssdata16-21316ssdataPurpose Quick access to state-space model dataSyntax [a,b,c,d] = ssdata(sys)[a,b,c,d,Ts] = ssdata(sys)Description [a,b,c,d] = ssda

Strany 506 - N>10 should be avoided

stack16-21416stackPurpose Build an LTI array by stacking LTI models or LTI arrays along arraydimensions of an LTI arraySyntax sys = stack(arraydim,sys

Strany 507

step16-21516stepPurpose Step response of LTI systemsSyntax step(sys)step(sys,t)step(sys1,sys2,...,sysN)step(sys1,sys2,...,sysN,t)step(sys1,'PlotS

Strany 508 - 16parallel

step16-216All systems must have the same number of inputs and outputs but mayotherwise be a mix of continuous- and discrete-time systems. This syntax

Strany 509

step16-217a = [-0.5572 -0.7814;0.7814 0];b = [1 -1;0 2];c = [1.9691 6.4493];sys = ss(a,b,c,0);step(sys)The left plot shows the step response of th

Strany 510 - Syntax K = place(A,B,p)

tf16-21816tfPurpose Specify transfer functions or convert LTI model to transfer function formSyntax sys = tf(num,den)sys = tf(num,den,Ts)sys = tf(M)sy

Strany 511

tf16-219If all SISO entries of a MIMO transfer function have the same denominator,you can setden to the row vector representation of this common denom

Strany 512

2 LTI Models2-38In general, to specify M input groups (or output groups), you need an M-by-2cell array organized as follows.Figure 2-2: Two Column Ce

Strany 513 - Syntax pzmap(sys)

tf16-220• s = tf('s') to specify a TF model using a rational function in the Laplacevariable,s.•z = tf('z',Ts) to specify a TF mod

Strany 514

tf16-221Transfer function from input "current" to output... p + 1 torque: ------------- p^2 + 2 p + 2

Strany 515 - Syntax rsys = reg(sys,K,L)

tf16-222To do this, typesys = ss([-2 -1;1 -2],[1 1;2 -1],[1 0],[0 1])tf(sys) Transfer function from input 1 to output: s-------------s^2 + 4 s +

Strany 516

tf16-223The polynomials and are then specified by the row vectors[1 0 0] and [1 2 3], respectively. By contrast, DSP engineers prefer to writethis tra

Strany 517

tf16-224See also filt for direct specification of discrete transfer functions using theDSP convention.Note thattf stores data so that the numerator an

Strany 518 - Example sys = rss(4,1,1,2,3);

tfdata16-22516tfdataPurpose Quick access to transfer function dataSyntax [num,den] = tfdata(sys)[num,den] = tfdata(sys,'v')[num,den,Ts] = tf

Strany 519 - Syntax rlocus(sys)

tfdata16-226you can extract the numerator and denominator coefficients by typing[num,den] = tfdata(h,'v')num = 0 1 1 den = 1

Strany 520

tfdata16-227tf Specify transfer functionszpkdata Quick access to zero-pole-gain data

Strany 521 - See Also pole System poles

totaldelay16-22816totaldelayPurpose Return the total combined I/O delays for an LTI modelSyntax td = totaldelay(sys)Description td = totaldelay(sys) r

Strany 522 - Syntax sys = rss(n)

zero16-22916zeroPurpose Transmission zeros of LTI modelsSyntax z = zero(sys)[z,gain] = zero(sys)Description zero computes the zeros of SISO systems an

Strany 523

LTI Properties2-39Similarly, you can add or delete channels from an existing input or outputgroup. Recalling thatinput group channelsare stored in the

Strany 524 - 16series

zgrid16-23016zgridPurpose Generate a z-plane grid of constant damping factors and natural frequenciesSyntax zgridzgrid(z,wn)Description zgrid generate

Strany 525

zgrid16-231To see the z-plane grid on the root locus plot, typerlocus(H)zgridaxis('square')See Also pzmap Plot pole-zero map of LTI systemsr

Strany 526

zpk16-23216zpkPurpose Specify zero-pole-gain models or convert LTI model to zero-pole-gain formSyntax sys = zpk(z,p,k)sys = zpk(z,p,k,Ts)sys = zpk(M)s

Strany 527 - Property

zpk16-233• z = zpk('z',Ts) to specify a ZPK model with sample time Ts froma rationaltransfer function of the discrete-time variable,z.Once y

Strany 528

zpk16-234sys = zpk(z,p,k,'Property1',Value1,...,'PropertyN',ValueN)is a shortcut for the following sequence of commands.sys = zpk(

Strany 529

zpk16-235To do this, typez = {[] ; -0.5}p = {0.3 ; [0.1+i 0.1-i]}k = [1 ; 2]H = zpk(z,p,k,-1) % unspecified sample timeExample 2Convert the transfer

Strany 530

zpk16-236 (z+0.3)^2 Sampling time: 0.1Algorithm zpk uses the MATLAB function roots to convert transfer functions and thefunctionszero and pole to co

Strany 531

zpkdata16-23716zpkdataPurpose Quick access to zero-pole-gain dataSyntax [z,p,k] = zpkdata(sys)[z,p,k] = zpkdata(sys,'v')[z,p,k,Ts,Td] = zpkd

Strany 532

zpkdata16-238Zero/pole/gain from input to output... 1 #1: ------- (z-0.3) 2 (z+0.5) #2: ------------------- (z^2 - 0.2z

Strany 533 - Syntax sgrid

zpkdata16-239zpk Specify zero-pole-gain models

Strany 534 - Generate z-plane grid lines

2 LTI Models2-40Model ConversionThere are four LTI model types you can use with the Control System Toolbox:TF,ZPK,SS,andFRD.Thissectionshowshow toconv

Strany 536

I-1IndexSymbols16-228Aacker 16-11addition of LTI models 3-11scalar 3-12adjoint. See pertranspositionalgebraic loop 16-77append 3-16, 5-28, 16-13array

Strany 537

IndexI-2crossover frequenciesallmargin 16-12margin 16-137ctrb 16-45ctrbf 16-47customizing plots 9-3SISO Design Tool 9-11Dd2c 16-49d2d 3-26, 16-52damp

Strany 538

IndexI-3Tustin method 3-22zero-order hold 3-20dlqr 16-60dlyap 16-62drmodel 16-63drss 16-63dsort 16-65DSP convention 16-78dss 16-66dssdata 16-68dual. S

Strany 539 - Syntax sisotool

IndexI-4Ggain 2-11feedthrough 2-27low frequency (DC) 16-58propertyLTI properties gain 2-27state-feedback gain 16-60gain margins 10-28, 16-21gensig 16-

Strany 540 - P to plant and the

IndexI-5Kalman estimatorcontinuous 10-36current 16-111discrete 10-50, 16-109innovation 16-111steady-state 16-109time-varying 10-57kalmd 16-113LLFT (li

Strany 541

IndexI-6interconnection functions 3-16inversion 3-13model data, accessing 2-23model order reduction 16-142model order reduction (balanced realization)

Strany 542 - Syntax size(sys)

IndexI-7multiplication 3-13scalar 3-13Nnatural frequency 16-53ndims 16-146ngrid 16-147Nicholschart 16-147plot (nichols) 16-149nichols 16-149noisemeasu

Strany 543 - Test if LTI model is SISO

IndexI-8Ppade 16-165Padé approximation (pade) 2-52, 16-165parallel 16-168parallel connection 3-12, 10-54, 16-168pertransposition 3-14phase margins 10-

Strany 544 - Syntax msys = sminreal(sys)

IndexI-9root locusdesign 10-9, 10-24plot (rlocus) 16-179See also Root Locus Design GUIrss 16-182building an LTI array with 5-12Ssample time 2-19, 2-25

Strany 545

Model Conversion2-41for discrete-time models.Automatic Conversion Some algorithms operate only on one type of LTI model. For example, thealgorithm for

Strany 546 - Syntax sys = ss(a,b,c,d)

IndexI-10specification 2-14, 16-206ss 2-14, 16-206transfer functions of 2-40step response 16-215subsystem 2-6, 3-5subsystem operations on LTI modelssu

Strany 547 - Conversion to State Space

IndexI-11quick data retrieval (zpkdata) 16-237specification 2-12, 16-232static gain 16-233zpk 2-12, 16-232zeros 2-12computing 16-229pole-zero map 16-1

Strany 548

ivBuildingLTIArraysUsingforLoops ... 5-12BuildingLTIArraysUsingthestackFunction ... 5-15BuildingLTIArraysUsingtf,zpk,ss,andf

Strany 549

2 LTI Models2-42ss(tf(sys))may return a model with different state-space matrices, or even a differentnumber of states in the MIMO case. Therefore, if

Strany 550 - Syntax sysT = ss2ss(sys,T)

Time Delays2-43Time DelaysUsing the ioDelay, InputDelay,andOutputDelay properties of LTI objects,you can specify delays in both continuous- and discre

Strany 551 - Syntax [sysb,T] = ssbal(sys)

2 LTI Models2-44•Interconnections of continuous-time delay systems as long as the resultingtransfer function from input to output is of the formwhere

Strany 552

Time Delays2-45This creates the LTI model with the following transfer function.Here is the entry ofNote State-space models with I/O delays have only

Strany 553 - 16ssdata

2 LTI Models2-46Figure 2-3: Distillation ColumnSchematically, the distillation process functions as follows:•Steam flows into the reboiler and vapori

Strany 554

Time Delays2-47Thegoalistomaximize byadjustingtherefluxflowrate andthesteamflow rate in the reboiler.To obtain a linearized model around the steady-st

Strany 555 - Syntax step(sys)

2 LTI Models2-48Specifying Delays on the Inputs or OutputsWhileidealforfrequency-domainmodelswithI/Odelays,the ioDelay propertyis inadequate to captur

Strany 556

Time Delays2-49You can also use the InputDelay and OutputDelay properties to convenientlyspecify input or output delays in TF, ZPK, or FRD models. For

Strany 557

2 LTI Models2-50Specifying Delays in Discrete-Time ModelsYou can also use the ioDelay, InputDelay,andOutputDelay properties tospecify delays in discre

Strany 558 - Syntax sys = tf(num,den)

Time Delays2-51You can specify this model either as the first-order transfer functionwith a delay of two sampling periods on the inputTs = 1; % sampli

Strany 559

vStylePage... 8-3CharacteristicsPage ... 8-4ParametersPage ...

Strany 560

2 LTI Models2-52sys.iodelayget(sys,'inputdelay')•Use the helper function hasdelay to determine if sys has any delay at all.The syntax ishasd

Strany 561 - Example 4

Time Delays2-53To compute a Padé approximation of H(s)using:•A first-order approximation for the 1 second and 3 second delays•A second-order approxima

Strany 562 - Conventions

2 LTI Models2-54Simulink Block for LTI SystemsYou can incorporate LTI objects into Simulink diagrams using the LTI Systemblock shown below.The LTI Sys

Strany 563

Simulink Block for LTI Systems2-55transfer functions or zero-pole-gain models, as it depends on thechoice of statecoordinates used by the realization

Strany 564

2 LTI Models2-56References[1] Dorf, R.C. and R.H. Bishop, Modern Control Systems, Addison-Wesley,Menlo Park, CA, 1998.[2] Wood, R.K. and M.W. Berry, “

Strany 565 - 16tfdata

3Operations on LTI ModelsPrecedence and Property Inheritance ...3-3Extracting and Modifying Subsystems ...3-5Referencing FRD Models Through

Strany 566

3 Operations on LTI Models3-2You can perform basic matrix operations such as addition, multiplication, orconcatenation on LTI models. Such operations

Strany 567 - Specify transfer functions

Precedence and Property Inheritance3-3Precedence and Property InheritanceYou can apply operations to LTI models of different types. The resulting type

Strany 568 - Syntax td = totaldelay(sys)

3 Operations on LTI Models3-4•In general, when two LTI models sys1 and sys2 are combined usingoperations such as+, *, [,], [;], append,andfeedback,the

Strany 569

Extracting and Modifying Subsystems3-5Extracting and Modifying SubsystemsSubsystems relate subsets of the inputs and outputs of a system. The transfer

Strany 570 - Syntax zgrid

vi10Design Case StudiesYaw Damper for a 747 Jet Transport ... 10-3Open-LoopAnalysis ... 10-5RootLocusDe

Strany 571 - Generate s-plane grid lines

3 Operations on LTI Models3-6The following rules apply when modifying LTI models:•sys, the LTI model that has had a portion reassigned, retains its or

Strany 572 - Syntax sys = zpk(z,p,k)

Extracting and Modifying Subsystems3-7Next reassign to and modify the second input channel of Tby typingT(1,1) = tf(1,[1 0.5]);T(:,2) = [ 1 ; tf(0.4,[

Strany 573

3 Operations on LTI Models3-8sys2.Frequencyans = 1.1000 1.2000displays the second and third entries in the frequency vector.Similarly, you can u

Strany 574 - Example Example 1

Extracting and Modifying Subsystems3-9You can reference a set of channels by input or output name by using a cellarray of strings for the names. For e

Strany 575

3 Operations on LTI Models3-10adds a second input to the state-space model sys by appending the B and Dmatrices. You should simultaneously modify both

Strany 576

Arithmetic Operations3-11Arithmetic OperationsYou can apply almost all arithmetic operations to LTI models, including thoseshown below.Addition and Su

Strany 577 - Syntax [z,p,k] = zpkdata(sys)

3 Operations on LTI Models3-12represents the parallel interconnection shown below.Ifsys1 and sys2 are two state-space models with data and, the state-

Strany 578

Arithmetic Operations3-13MultiplicationMultiplication of two LTI models connects them in series. Specifically,sys = sys1 * sys2returns an LTI model sy

Strany 579 - Specify zero-pole-gain models

3 Operations on LTI Models3-14•Left division sys1\sys2, which is equivalent to inv(sys1)*sys2•Right division sys1/sys2, which is equivalent to sys1*in

Strany 580

Arithmetic Operations3-15pertranspose of , , is the Hermitian transpose of thefrequency response of : .To obtain the Hermitian transpose of the freque

Strany 581

viiSummary ... 11-17References ... 11-1812GUI Reference13SISO Design Too

Strany 582

3 Operations on LTI Models3-16Model Interconnection FunctionsThe Control System Toolbox provides a number of functions to help with themodel building

Strany 583

Model Interconnection Functions3-17sys = append(sys1,sys2)% block diagonal appendingIn I/O terms, horizontal and vertical concatenation have the follo

Strany 584

3 Operations on LTI Models3-18to specify the block-decoupled LTI model interconnection.Seeappend for more information on this function.Feedback and Ot

Strany 585

Model Interconnection Functions3-19is realized withfeedback(sys1,sys2)This specifies the LTI model with m inputs and p outputs whose I/O map isSee the

Strany 586

3 Operations on LTI Models3-20Continuous/Discrete Conversions of LTI ModelsThe function c2d discretizes continuous-time TF, SS, or ZPK models.Converse

Strany 587

Continuous/Discrete Conversions of LTI Models3-21The signal is then fed to the continuous system , and the resultingoutput is sampled every seconds to

Strany 588

3 Operations on LTI Models3-22---------(z+0.5)^2 Sampling time: 0.1First-Order HoldFirst-order hold (FOH) differs from ZOH by the underlying hold mech

Strany 589

Continuous/Discrete Conversions of LTI Models3-23Tustin with Frequency PrewarpingThis variation of the Tustin approximation uses the correspondenceThi

Strany 590

3 Operations on LTI Models3-24using zero-order hold on the input, and a 10 Hz sampling rate, typeh = tf(10,[1 3 10],'inputdelay',0.25);hd =

Strany 591

Continuous/Discrete Conversions of LTI Models3-25step(h,'--',hd,'-')Note The Tustin and matched pole/zero methods are accurate o

Komentáře k této Příručce

Žádné komentáře