0% found this document useful (0 votes)
11 views

Simulation of Dynamic Systems with MATLAB and Simulink Second Edition Harold Klee all chapter instant download

The document provides links to various educational ebooks related to MATLAB, Simulink, and other subjects, including titles like 'Simulation of Dynamic Systems with MATLAB and Simulink' and 'Signals and Systems with MATLAB Computing and Simulink Modeling.' It emphasizes the availability of instant digital products in multiple formats such as PDF and ePub. Additionally, it includes copyright information and acknowledgments related to the publications.

Uploaded by

bayukroherlk
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Simulation of Dynamic Systems with MATLAB and Simulink Second Edition Harold Klee all chapter instant download

The document provides links to various educational ebooks related to MATLAB, Simulink, and other subjects, including titles like 'Simulation of Dynamic Systems with MATLAB and Simulink' and 'Signals and Systems with MATLAB Computing and Simulink Modeling.' It emphasizes the availability of instant digital products in multiple formats such as PDF and ePub. Additionally, it includes copyright information and acknowledgments related to the publications.

Uploaded by

bayukroherlk
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 29

Download the Full Version of the Ebook with Added Features ebookname.

com

Simulation of Dynamic Systems with MATLAB and


Simulink Second Edition Harold Klee

https://ebookname.com/product/simulation-of-dynamic-systems-
with-matlab-and-simulink-second-edition-harold-klee/

OR CLICK HERE

DOWLOAD NOW

Download more ebook instantly today at https://ebookname.com


Instant digital products (PDF, ePub, MOBI) available
Download now and explore formats that suit you...

Signals and Systems with MATLAB Computing and Simulink


Modeling 4th Edition Steven T Karris

https://ebookname.com/product/signals-and-systems-with-matlab-
computing-and-simulink-modeling-4th-edition-steven-t-karris/

ebookname.com

Modern Control Design With MATLAB and SIMULINK 1st Edition


Ashish Tewari

https://ebookname.com/product/modern-control-design-with-matlab-and-
simulink-1st-edition-ashish-tewari/

ebookname.com

Discrete systems and digital signal processing with MATLAB


Second Edition Elali

https://ebookname.com/product/discrete-systems-and-digital-signal-
processing-with-matlab-second-edition-elali/

ebookname.com

The Making of Modern Burma 1st Edition Thant Myint-U

https://ebookname.com/product/the-making-of-modern-burma-1st-edition-
thant-myint-u/

ebookname.com
Guitar Fretboard Workbook Barrett Tagliarino

https://ebookname.com/product/guitar-fretboard-workbook-barrett-
tagliarino/

ebookname.com

Personality Assessment in Treatment Planning Use of the


MMPI 2 and BTPI 1st Edition James Butcher

https://ebookname.com/product/personality-assessment-in-treatment-
planning-use-of-the-mmpi-2-and-btpi-1st-edition-james-butcher/

ebookname.com

Kingship in the Mycenaean World and its reflections in the


Oral Tradition Prehistory Monographs Ione Mylonas Shear

https://ebookname.com/product/kingship-in-the-mycenaean-world-and-its-
reflections-in-the-oral-tradition-prehistory-monographs-ione-mylonas-
shear/
ebookname.com

Conquerors brides and concubines interfaith relations and


social power in medieval Iberia 1st ed Edition Barton

https://ebookname.com/product/conquerors-brides-and-concubines-
interfaith-relations-and-social-power-in-medieval-iberia-1st-ed-
edition-barton/
ebookname.com

A Textbook of Quantum Mechanics 2nd Edition P. M. Mathew

https://ebookname.com/product/a-textbook-of-quantum-mechanics-2nd-
edition-p-m-mathew/

ebookname.com
Chained Soldier VOL ■ Takahiro

https://ebookname.com/product/chained-soldier-vol-%ef%bc%92-takahiro/

ebookname.com
SECOND EDITION

Simulation of
Dynamic Systems
® ®
with MATLAB and Simulink
Harold Klee
Randal Allen

Boca Raton London New York

CRC Press is an imprint of the


Taylor & Francis Group, an informa business
MATLAB® is a trademark of The MathWorks, Inc. and is used with permission. The MathWorks does not warrant the
accuracy of the text or exercises in this book. This book’s use or discussion of MATLAB® software or related products
does not constitute endorsement or sponsorship by The MathWorks of a particular pedagogical approach or particular
use of the MATLAB® software.

CRC Press
Taylor & Francis Group
6000 Broken Sound Parkway NW, Suite 300
Boca Raton, FL 33487-2742
© 2011 by Taylor and Francis Group, LLC
CRC Press is an imprint of Taylor & Francis Group, an Informa business

No claim to original U.S. Government works

Printed in the United States of America on acid-free paper


10 9 8 7 6 5 4 3 2 1

International Standard Book Number-13: 978-1-4398-3674-3 (Ebook-PDF)

This book contains information obtained from authentic and highly regarded sources. Reasonable efforts have been
made to publish reliable data and information, but the author and publisher cannot assume responsibility for the valid-
ity of all materials or the consequences of their use. The authors and publishers have attempted to trace the copyright
holders of all material reproduced in this publication and apologize to copyright holders if permission to publish in this
form has not been obtained. If any copyright material has not been acknowledged please write and let us know so we may
rectify in any future reprint.

Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced, transmitted, or uti-
lized in any form by any electronic, mechanical, or other means, now known or hereafter invented, including photocopy-
ing, microfilming, and recording, or in any information storage or retrieval system, without written permission from the
publishers.

For permission to photocopy or use material electronically from this work, please access www.copyright.com (http://
www.copyright.com/) or contact the Copyright Clearance Center, Inc. (CCC), 222 Rosewood Drive, Danvers, MA 01923,
978-750-8400. CCC is a not-for-profit organization that provides licenses and registration for a variety of users. For
organizations that have been granted a photocopy license by the CCC, a separate system of payment has been arranged.

Trademark Notice: Product or corporate names may be trademarks or registered trademarks, and are used only for
identification and explanation without intent to infringe.
Visit the Taylor & Francis Web site at
http://www.taylorandfrancis.com
and the CRC Press Web site at
http://www.crcpress.com
To Andrew, Cassie and in loving memory
of their mother and devoted wife, Laura.

Harold Klee

To Dave Lundquist and Steve Roemerman who believed in me.

Randal Allen
This page intentionally left blank
Contents
Foreword ........................................................................................................................................ xiii
Preface............................................................................................................................................. xv
Authors........................................................................................................................................... xix

Chapter 1 Mathematical Modeling............................................................................................... 1


1.1 Introduction....................................................................................................... 1
1.1.1 Importance of Models ......................................................................... 1
1.2 Derivation of a Mathematical Model ............................................................... 4
Exercises...................................................................................................................... 8
1.3 Difference Equations ...................................................................................... 10
1.3.1 Recursive Solutions ........................................................................... 11
Exercises.................................................................................................................... 12
1.4 First Look at Discrete-Time Systems ............................................................. 13
1.4.1 Inherently Discrete-Time Systems .................................................... 17
Exercises.................................................................................................................... 20
1.5 Case Study: Population Dynamics (Single Species) ...................................... 21
Exercises.................................................................................................................... 28

Chapter 2 Continuous-Time Systems......................................................................................... 31


2.1 Introduction..................................................................................................... 31
2.2 First-Order Systems ........................................................................................ 31
2.2.1 Step Response of First-Order Systems.............................................. 32
Exercises.................................................................................................................... 36
2.3 Second-Order Systems.................................................................................... 38
2.3.1 Conversion of Two First-Order Equations to a Second-Order
Model................................................................................................. 43
Exercises.................................................................................................................... 46
2.4 Simulation Diagrams ...................................................................................... 47
2.4.1 Systems of Equations ........................................................................ 53
Exercises.................................................................................................................... 55
2.5 Higher-Order Systems .................................................................................... 56
Exercises.................................................................................................................... 58
2.6 State Variables ................................................................................................ 59
2.6.1 Conversion from Linear State Variable Form to Single
Input–Single Output Form ................................................................ 64
2.6.2 General Solution of the State Equations ........................................... 65
Exercises.................................................................................................................... 65
2.7 Nonlinear Systems .......................................................................................... 68
2.7.1 Friction .............................................................................................. 70
2.7.2 Dead Zone and Saturation ................................................................. 72
2.7.3 Backlash ............................................................................................ 73
2.7.4 Hysteresis........................................................................................... 73
2.7.5 Quantization....................................................................................... 77
2.7.6 Sustained Oscillations and Limit Cycles........................................... 78

v
vi Contents

Exercises.................................................................................................................... 82
2.8 Case Study: Submarine Depth Control System ............................................. 85
Exercises.................................................................................................................... 89

Chapter 3 Elementary Numerical Integration ............................................................................ 91


3.1 Introduction..................................................................................................... 91
3.2 Discrete-Time System Approximation of a Continuous-Time Integrator...... 92
Exercises.................................................................................................................... 94
3.3 Euler Integration ............................................................................................. 96
3.3.1 Backward (Implicit) Euler Integration .............................................. 99
Exercises.................................................................................................................. 101
3.4 Trapezoidal Integration................................................................................. 102
Exercises.................................................................................................................. 106
3.5 Numerical Integration of First-Order and Higher Continuous-Time
Systems ......................................................................................................... 107
3.5.1 Discrete-Time System Models from Simulation Diagrams ............ 107
3.5.2 Nonlinear First-Order Systems........................................................ 111
3.5.3 Discrete-Time State Equations ........................................................ 114
3.5.4 Discrete-Time State System Matrices ............................................. 118
Exercises.................................................................................................................. 119
3.6 Improvements to Euler Integration............................................................... 122
3.6.1 Improved Euler Method .................................................................. 122
3.6.2 Modified Euler Integration .............................................................. 125
Exercises.................................................................................................................. 135
3.7 Case Study: Vertical Ascent of a Diver ....................................................... 138
3.7.1 Maximum Cable Force for Safe Ascent.......................................... 144
3.7.1.1 Trial and Error ................................................................. 144
3.7.1.2 Analytical Solution .......................................................... 145
3.7.2 Diver Ascent with Decompression Stops........................................ 145
Exercises.................................................................................................................. 147

Chapter 4 Linear Systems Analysis ......................................................................................... 151


4.1 Introduction................................................................................................... 151
4.2 Laplace Transform........................................................................................ 151
4.2.1 Properties of the Laplace Transform ............................................... 153
4.2.2 Inverse Laplace Transform.............................................................. 159
4.2.3 Laplace Transform of the System Response................................... 160
4.2.4 Partial Fraction Expansion .............................................................. 161
Exercises.................................................................................................................. 167
4.3 Transfer Function.......................................................................................... 168
4.3.1 Impulse Function ............................................................................. 168
4.3.2 Relationship between Unit Step Function and Unit Impulse
Function........................................................................................... 169
4.3.3 Impulse Response............................................................................ 171
4.3.4 Relationship between Impulse Response and Transfer Function ... 175
4.3.5 Systems with Multiple Inputs and Outputs ..................................... 178
4.3.6 Transformation from State Variable Model to Transfer
Function........................................................................................... 184
Exercises.................................................................................................................. 187
Contents vii

4.4 Stability of Linear Time Invariant Continuous-Time Systems .................... 189


4.4.1 Characteristic Polynomial................................................................ 190
4.4.2 Feedback Control System................................................................ 194
Exercises.................................................................................................................. 198
4.5 Frequency Response of LTI Continuous-Time Systems.............................. 200
4.5.1 Stability of Linear Feedback Control Systems Based
on Frequency Response................................................................... 210
Exercises.................................................................................................................. 213
4.6 z-Transform................................................................................................... 215
4.6.1 Discrete-Time Impulse Function ..................................................... 221
4.6.2 Inverse z-Transform......................................................................... 225
4.6.3 Partial Fraction Expansion .............................................................. 226
Exercises.................................................................................................................. 233
4.7 z-Domain Transfer Function......................................................................... 234
4.7.1 Nonzero Initial Conditions .............................................................. 236
4.7.2 Approximating Continuous-Time System Transfer Functions ....... 238
4.7.3 Simulation Diagrams and State Variables....................................... 244
4.7.4 Solution of Linear Discrete-Time State Equations ......................... 248
4.7.5 Weighting Sequence (Impulse Response Function)........................ 253
Exercises.................................................................................................................. 257
4.8 Stability of LTI Discrete-Time Systems....................................................... 259
4.8.1 Complex Poles of H(z) .................................................................... 263
Exercises.................................................................................................................. 269
4.9 Frequency Response of Discrete-Time Systems .......................................... 272
4.9.1 Steady-State Sinusoidal Response................................................... 272
4.9.2 Properties of the Discrete-Time Frequency Response Function..... 274
4.9.3 Sampling Theorem .......................................................................... 278
4.9.4 Digital Filters................................................................................... 284
Exercises.................................................................................................................. 289
4.10 Control System Toolbox .............................................................................. 292
4.10.1 Transfer Function Models ............................................................... 293
4.10.2 State-Space Models ......................................................................... 293
4.10.3 State-Space=Transfer Function Conversion..................................... 295
4.10.4 System Interconnections.................................................................. 298
4.10.5 System Response............................................................................. 299
4.10.6 Continuous-=Discrete-Time System Conversion............................. 302
4.10.7 Frequency Response........................................................................ 303
4.10.8 Root Locus ...................................................................................... 305
Exercises.................................................................................................................. 309
4.11 Case Study: Longitudinal Control of an Aircraft......................................... 312
4.11.1 Digital Simulation of Aircraft Longitudinal Dynamics .................. 325
4.11.2 Simulation of State Variable Model................................................ 327
Exercises.................................................................................................................. 329
4.12 Case Study: Notch Filter for Electrocardiograph Waveform ....................... 330
4.12.1 Multinotch Filters ............................................................................ 331
Exercises.................................................................................................................. 338

Chapter 5 Simulink® ................................................................................................................ 341


5.1 Introduction................................................................................................... 341
5.2 Building a Simulink® Model........................................................................ 341
viii Contents

5.2.1 Simulink® Library ........................................................................... 342


5.2.2 Running a Simulink® Model........................................................... 345
Exercises.................................................................................................................. 347
5.3 Simulation of Linear Systems ...................................................................... 349
5.3.1 Transfer Fcn Block.......................................................................... 350
5.3.2 State-Space Block............................................................................ 353
Exercises.................................................................................................................. 362
5.4 Algebraic Loops ........................................................................................... 363
5.4.1 Eliminating Algebraic Loops .......................................................... 364
5.4.2 Algebraic Equations ........................................................................ 367
Exercises.................................................................................................................. 369
5.5 More Simulink® Blocks ............................................................................... 371
5.5.1 Discontinuities ................................................................................. 377
5.5.2 Friction ............................................................................................ 377
5.5.3 Dead Zone and Saturation ............................................................... 377
5.5.4 Backlash .......................................................................................... 379
5.5.5 Hysteresis......................................................................................... 380
5.5.6 Quantization..................................................................................... 381
Exercises.................................................................................................................. 382
5.6 Subsystems ................................................................................................... 385
5.6.1 PHYSBE.......................................................................................... 386
5.6.2 Car-Following Subsystem ............................................................... 386
5.6.3 Subsystem Using Fcn Blocks.......................................................... 389
Exercises.................................................................................................................. 392
5.7 Discrete-Time Systems ................................................................................. 393
5.7.1 Simulation of an Inherently Discrete-Time System ........................ 394
5.7.2 Discrete-Time Integrator.................................................................. 397
5.7.3 Centralized Integration .................................................................... 398
5.7.4 Digital Filters................................................................................... 402
5.7.5 Discrete-Time Transfer Function .................................................... 404
Exercises.................................................................................................................. 408
5.8 MATLAB® and Simulink® Interface ........................................................... 411
Exercises.................................................................................................................. 417
5.9 Hybrid Systems: Continuous- and Discrete-Time Components .................. 420
Exercises.................................................................................................................. 423
5.10 Monte Carlo Simulation ............................................................................... 424
5.10.1 Monte Carlo Simulation Requiring Solution
of a Mathematical Model ................................................................ 428
Exercises.................................................................................................................. 434
5.11 Case Study: Pilot Ejection............................................................................ 437
Exercises.................................................................................................................. 441
5.12 Case Study: Kalman Filtering ...................................................................... 442
5.12.1 Continuous-Time Kalman Filter...................................................... 442
5.12.2 Steady-State Kalman Filter.............................................................. 443
5.12.3 Discrete-Time Kalman Filter........................................................... 443
5.12.4 Simulink® Simulations .................................................................... 444
5.12.5 Summary.......................................................................................... 455
Exercise ................................................................................................................... 456
Contents ix

Chapter 6 Intermediate Numerical Integration......................................................................... 457


6.1 Introduction................................................................................................... 457
6.2 Runge–Kutta (RK) (One-Step Methods)...................................................... 457
6.2.1 Taylor Series Method ...................................................................... 458
6.2.2 Second-Order Runge–Kutta Method............................................... 459
6.2.3 Truncation Errors............................................................................. 461
6.2.4 High-Order Runge–Kutta Methods ................................................. 466
6.2.5 Linear Systems: Approximate Solutions Using RK Integration ..... 467
6.2.6 Continuous-Time Models with Polynomial Solutions .................... 469
6.2.7 Higher-Order Systems ..................................................................... 471
Exercises.................................................................................................................. 478
6.3 Adaptive Techniques .................................................................................... 481
6.3.1 Repeated RK with Interval Halving................................................ 481
6.3.2 Constant Step Size (T ¼ 1 min)....................................................... 485
6.3.3 Adaptive Step Size (Initial T ¼ 1 min) ............................................ 485
6.3.4 RK–Fehlberg ................................................................................... 486
Exercises.................................................................................................................. 490
6.4 Multistep Methods ........................................................................................ 492
6.4.1 Explicit Methods ............................................................................. 493
6.4.2 Implicit Methods ............................................................................. 495
6.4.3 Predictor–Corrector Methods .......................................................... 498
Exercises.................................................................................................................. 502
6.5 Stiff Systems................................................................................................. 503
6.5.1 Stiffness Property in First-Order System ........................................ 504
6.5.2 Stiff Second-Order System.............................................................. 506
6.5.3 Approximating Stiff Systems with Lower-Order Nonstiff
System Models ................................................................................ 509
Exercises.................................................................................................................. 522
6.6 Lumped Parameter Approximation of Distributed Parameter Systems ....... 526
6.6.1 Nonlinear Distributed Parameter System ........................................ 531
Exercises.................................................................................................................. 534
6.7 Systems with Discontinuities........................................................................ 535
6.7.1 Physical Properties and Constant Forces Acting
on the Pendulum BOB .................................................................... 543
Exercises.................................................................................................................. 549
6.8 Case Study: Spread of an Epidemic ............................................................. 552
Exercises.................................................................................................................. 559

Chapter 7 Simulation Tools ..................................................................................................... 561


7.1 Introduction................................................................................................... 561
7.2 Steady-State Solver....................................................................................... 562
7.2.1 Trim Function.................................................................................. 564
7.2.2 Equilibrium Point for a Nonautonomous System ........................... 565
Exercises.................................................................................................................. 574
7.3 Optimization of Simulink® Models.............................................................. 576
7.3.1 Gradient Vector ............................................................................... 585
7.3.2 Optimizing Multiparameter Objective Functions Requiring
Simulink® Models ........................................................................... 587
x Contents

7.3.3 Parameter Identification................................................................... 590


7.3.4 Example of a Simple Gradient Search ............................................ 591
7.3.5 Optimization of Simulink® Discrete-Time System Models............ 599
Exercises.................................................................................................................. 605
7.4 Linearization ................................................................................................. 610
7.4.1 Deviation Variables ......................................................................... 611
7.4.2 Linearization of Nonlinear Systems in State Variable Form .......... 619
7.4.3 Linmod Function ............................................................................. 623
7.4.4 Multiple Linearized Models for a Single System ........................... 627
Exercises.................................................................................................................. 633
7.5 Adding Blocks to the Simulink® Library Browser ...................................... 637
7.5.1 Introduction ..................................................................................... 637
7.5.2 Summary.......................................................................................... 645
Exercise ................................................................................................................... 645
7.6 Simulation Acceleration ............................................................................... 645
7.6.1 Introduction ..................................................................................... 645
7.6.2 Profiler ............................................................................................. 647
7.6.3 Summary.......................................................................................... 647
Exercise ................................................................................................................... 648

Chapter 8 Advanced Numerical Integration ............................................................................ 649


8.1 Introduction................................................................................................... 649
8.2 Dynamic Errors (Characteristic Roots, Transfer Function).......................... 649
8.2.1 Discrete-Time Systems and the Equivalent
Continuous-Time Systems............................................................... 650
8.2.2 Characteristic Root Errors ............................................................... 653
8.2.3 Transfer Function Errors ................................................................. 664
8.2.4 Asymptotic Formulas for Multistep Integration Methods............... 669
8.2.5 Simulation of Linear System with Transfer Function H(s) ............ 672
Exercises.................................................................................................................. 677
8.3 Stability of Numerical Integrators ................................................................ 680
8.3.1 Adams–Bashforth Numerical Integrators ........................................ 680
8.3.2 Implicit Integrators .......................................................................... 687
8.3.3 Runga–Kutta (RK) Integration ........................................................ 692
Exercises.................................................................................................................. 700
8.4 Multirate Integration ..................................................................................... 702
8.4.1 Procedure for Updating Slow and Fast States:
Master=Slave ¼ RK-4=RK-4 ............................................................ 706
8.4.2 Selection of Step Size Based on Stability ....................................... 707
8.4.3 Selection of Step Size Based on Dynamic Accuracy ..................... 708
8.4.4 Analytical Solution for State Variables........................................... 712
8.4.5 Multirate Integration of Aircraft Pitch Control System .................. 714
8.4.6 Nonlinear Dual Speed Second-Order System ................................. 717
8.4.7 Multirate Simulation of Two-Tank System .................................... 723
8.4.8 Simulation Trade-Offs with Multirate Integration .......................... 725
Exercises.................................................................................................................. 728
8.5 Real-Time Simulation................................................................................... 730
8.5.1 Numerical Integration Methods Compatible
with Real-Time Operation............................................................... 733
8.5.2 RK-1 (Explicit Euler) ...................................................................... 734
Contents xi

8.5.3 RK-2 (Improved Euler) ................................................................... 734


8.5.4 RK-2 (Modified Euler) .................................................................... 735
8.5.5 RK-3 (Real-Time Incompatible) ..................................................... 735
8.5.6 RK-3 (Real-Time Compatible)........................................................ 736
8.5.7 RK-4 (Real-Time Incompatible) ..................................................... 736
8.5.8 Multistep Integration Methods ........................................................ 736
8.5.9 Stability of Real-Time Predictor–Corrector Method....................... 738
8.5.10 Extrapolation of Real-Time Inputs.................................................. 740
8.5.11 Alternate Approach to Real-Time Compatibility: Input Delay....... 746
Exercises.................................................................................................................. 753
8.6 Additional Methods of Approximating Continuous-Time
System Models ............................................................................................. 754
8.6.1 Sampling and Signal Reconstruction .............................................. 754
8.6.2 First-Order Hold Signal Reconstruction.......................................... 759
8.6.3 Matched Pole-Zero Method............................................................. 760
8.6.4 Bilinear Transform with Prewarping............................................... 763
Exercises.................................................................................................................. 765
8.7 Case Study: Lego Mindstormse NXT ........................................................ 767
8.7.1 Introduction ..................................................................................... 767
8.7.2 Requirements and Installation ......................................................... 769
8.7.3 Noisy Model .................................................................................... 769
8.7.4 Filtered Model ................................................................................. 773
8.7.5 Summary.......................................................................................... 779
Exercise ................................................................................................................... 779

References .................................................................................................................................... 781

Index............................................................................................................................................. 785
This page intentionally left blank
Foreword
As the authors point out in the preface, there is not yet extant a universally accepted definition of the
term simulation. Another approach to defining the field would be ‘‘the art of reproducing the behavior
of a system for analysis without actually operating that system.’’ The authors have written a seminal
text covering the simulation design and analysis of a broad variety of systems using two of the most
modern software packages available today. The material is presented in a particularly adept fashion
enabling students new to the field to gain a thorough understanding of the basics of continuous
simulation in a single semester and providing, at the same time, a more advanced treatment of the
subject for researchers and simulation professionals. The authors’ extensive treatment of continuous
and discrete linear system fundamentals opens the door to simulation for individuals without formal
education in a traditional engineering curriculum.
However defined, simulation is becoming an increasingly important component of curricula in
engineering, business administration, the sciences, applied mathematics, and the like. This text will
be a valuable resource for study in courses using simulation as a tool for understanding processes
that are not amenable to study in other ways.

Chris Bauer, PhD, PE, CMSP


Orlando, Florida

Simulation has come a long way since the days analog computers filled entire rooms. Yet, it is more
important than ever that simulations be constructed with care, knowledge, and a little wisdom, lest
the results be gibberish or, worse, reasonable but misleading. Used properly, simulations can give us
extraordinary insights into the processes and states of a physical system. Constructed with care,
simulations can save time and money in today’s competitive marketplace.
One major application of simulation is the simulator, which provides interaction between a
model and a person through some interface. The earliest simulator, Ed Link’s Pilot Maker aircraft
trainer, did not use any of the simulation techniques described in this book. Modern simulators,
however, such as the National Advanced Driving Simulator (NADS), cannot be fully understood
without them.
The mission of the NADS is a lofty one: to save lives on U.S. highways through safety research
using realistic human-in-the-loop simulation. This is an example of the importance simulation has
attained in our generation. The pervasiveness of simulation tools in our society will only increase
over time; it will be more important than ever that future scientists and engineers be familiar with
their theory and application.
The content for Simulation of Dynamic Systems with MATLAB® and Simulink® is arranged to
give the student a gradual and natural progression through the important topics in simulation.
Advanced concepts are added only after complete examples have been constructed using funda-
mental methods. The use of MATLAB and Simulink provides experience with tools that are widely
adopted in industry and allow easy construction of simulation models.
May your experience with simulation be enjoyable and fruitful and extend throughout your
careers.

Chris Schwarz, PhD


Iowa City, Iowa

xiii
This page intentionally left blank
Another Random Scribd Document
with Unrelated Content
1.C. The Project Gutenberg Literary Archive Foundation (“the
Foundation” or PGLAF), owns a compilation copyright in the
collection of Project Gutenberg™ electronic works. Nearly all the
individual works in the collection are in the public domain in the
United States. If an individual work is unprotected by copyright law in
the United States and you are located in the United States, we do
not claim a right to prevent you from copying, distributing,
performing, displaying or creating derivative works based on the
work as long as all references to Project Gutenberg are removed. Of
course, we hope that you will support the Project Gutenberg™
mission of promoting free access to electronic works by freely
sharing Project Gutenberg™ works in compliance with the terms of
this agreement for keeping the Project Gutenberg™ name
associated with the work. You can easily comply with the terms of
this agreement by keeping this work in the same format with its
attached full Project Gutenberg™ License when you share it without
charge with others.

1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside the
United States, check the laws of your country in addition to the terms
of this agreement before downloading, copying, displaying,
performing, distributing or creating derivative works based on this
work or any other Project Gutenberg™ work. The Foundation makes
no representations concerning the copyright status of any work in
any country other than the United States.

1.E. Unless you have removed all references to Project Gutenberg:

1.E.1. The following sentence, with active links to, or other


immediate access to, the full Project Gutenberg™ License must
appear prominently whenever any copy of a Project Gutenberg™
work (any work on which the phrase “Project Gutenberg” appears, or
with which the phrase “Project Gutenberg” is associated) is
accessed, displayed, performed, viewed, copied or distributed:
This eBook is for the use of anyone anywhere in the United
States and most other parts of the world at no cost and with
almost no restrictions whatsoever. You may copy it, give it away
or re-use it under the terms of the Project Gutenberg License
included with this eBook or online at www.gutenberg.org. If you
are not located in the United States, you will have to check the
laws of the country where you are located before using this
eBook.

1.E.2. If an individual Project Gutenberg™ electronic work is derived


from texts not protected by U.S. copyright law (does not contain a
notice indicating that it is posted with permission of the copyright
holder), the work can be copied and distributed to anyone in the
United States without paying any fees or charges. If you are
redistributing or providing access to a work with the phrase “Project
Gutenberg” associated with or appearing on the work, you must
comply either with the requirements of paragraphs 1.E.1 through
1.E.7 or obtain permission for the use of the work and the Project
Gutenberg™ trademark as set forth in paragraphs 1.E.8 or 1.E.9.

1.E.3. If an individual Project Gutenberg™ electronic work is posted


with the permission of the copyright holder, your use and distribution
must comply with both paragraphs 1.E.1 through 1.E.7 and any
additional terms imposed by the copyright holder. Additional terms
will be linked to the Project Gutenberg™ License for all works posted
with the permission of the copyright holder found at the beginning of
this work.

1.E.4. Do not unlink or detach or remove the full Project


Gutenberg™ License terms from this work, or any files containing a
part of this work or any other work associated with Project
Gutenberg™.

1.E.5. Do not copy, display, perform, distribute or redistribute this


electronic work, or any part of this electronic work, without
prominently displaying the sentence set forth in paragraph 1.E.1 with
active links or immediate access to the full terms of the Project
Gutenberg™ License.
1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if you
provide access to or distribute copies of a Project Gutenberg™ work
in a format other than “Plain Vanilla ASCII” or other format used in
the official version posted on the official Project Gutenberg™ website
(www.gutenberg.org), you must, at no additional cost, fee or expense
to the user, provide a copy, a means of exporting a copy, or a means
of obtaining a copy upon request, of the work in its original “Plain
Vanilla ASCII” or other form. Any alternate format must include the
full Project Gutenberg™ License as specified in paragraph 1.E.1.

1.E.7. Do not charge a fee for access to, viewing, displaying,


performing, copying or distributing any Project Gutenberg™ works
unless you comply with paragraph 1.E.8 or 1.E.9.

1.E.8. You may charge a reasonable fee for copies of or providing


access to or distributing Project Gutenberg™ electronic works
provided that:

• You pay a royalty fee of 20% of the gross profits you derive from
the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”

• You provide a full refund of any money paid by a user who


notifies you in writing (or by e-mail) within 30 days of receipt that
s/he does not agree to the terms of the full Project Gutenberg™
License. You must require such a user to return or destroy all
copies of the works possessed in a physical medium and
discontinue all use of and all access to other copies of Project
Gutenberg™ works.

• You provide, in accordance with paragraph 1.F.3, a full refund of


any money paid for a work or a replacement copy, if a defect in
the electronic work is discovered and reported to you within 90
days of receipt of the work.

• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.

1.E.9. If you wish to charge a fee or distribute a Project Gutenberg™


electronic work or group of works on different terms than are set
forth in this agreement, you must obtain permission in writing from
the Project Gutenberg Literary Archive Foundation, the manager of
the Project Gutenberg™ trademark. Contact the Foundation as set
forth in Section 3 below.

1.F.

1.F.1. Project Gutenberg volunteers and employees expend


considerable effort to identify, do copyright research on, transcribe
and proofread works not protected by U.S. copyright law in creating
the Project Gutenberg™ collection. Despite these efforts, Project
Gutenberg™ electronic works, and the medium on which they may
be stored, may contain “Defects,” such as, but not limited to,
incomplete, inaccurate or corrupt data, transcription errors, a
copyright or other intellectual property infringement, a defective or
damaged disk or other medium, a computer virus, or computer
codes that damage or cannot be read by your equipment.

1.F.2. LIMITED WARRANTY, DISCLAIMER OF DAMAGES - Except


for the “Right of Replacement or Refund” described in paragraph
1.F.3, the Project Gutenberg Literary Archive Foundation, the owner
of the Project Gutenberg™ trademark, and any other party
distributing a Project Gutenberg™ electronic work under this
agreement, disclaim all liability to you for damages, costs and
expenses, including legal fees. YOU AGREE THAT YOU HAVE NO
REMEDIES FOR NEGLIGENCE, STRICT LIABILITY, BREACH OF
WARRANTY OR BREACH OF CONTRACT EXCEPT THOSE
PROVIDED IN PARAGRAPH 1.F.3. YOU AGREE THAT THE
FOUNDATION, THE TRADEMARK OWNER, AND ANY
DISTRIBUTOR UNDER THIS AGREEMENT WILL NOT BE LIABLE
TO YOU FOR ACTUAL, DIRECT, INDIRECT, CONSEQUENTIAL,
PUNITIVE OR INCIDENTAL DAMAGES EVEN IF YOU GIVE
NOTICE OF THE POSSIBILITY OF SUCH DAMAGE.

1.F.3. LIMITED RIGHT OF REPLACEMENT OR REFUND - If you


discover a defect in this electronic work within 90 days of receiving it,
you can receive a refund of the money (if any) you paid for it by
sending a written explanation to the person you received the work
from. If you received the work on a physical medium, you must
return the medium with your written explanation. The person or entity
that provided you with the defective work may elect to provide a
replacement copy in lieu of a refund. If you received the work
electronically, the person or entity providing it to you may choose to
give you a second opportunity to receive the work electronically in
lieu of a refund. If the second copy is also defective, you may
demand a refund in writing without further opportunities to fix the
problem.

1.F.4. Except for the limited right of replacement or refund set forth in
paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.

1.F.5. Some states do not allow disclaimers of certain implied


warranties or the exclusion or limitation of certain types of damages.
If any disclaimer or limitation set forth in this agreement violates the
law of the state applicable to this agreement, the agreement shall be
interpreted to make the maximum disclaimer or limitation permitted
by the applicable state law. The invalidity or unenforceability of any
provision of this agreement shall not void the remaining provisions.
1.F.6. INDEMNITY - You agree to indemnify and hold the
Foundation, the trademark owner, any agent or employee of the
Foundation, anyone providing copies of Project Gutenberg™
electronic works in accordance with this agreement, and any
volunteers associated with the production, promotion and distribution
of Project Gutenberg™ electronic works, harmless from all liability,
costs and expenses, including legal fees, that arise directly or
indirectly from any of the following which you do or cause to occur:
(a) distribution of this or any Project Gutenberg™ work, (b)
alteration, modification, or additions or deletions to any Project
Gutenberg™ work, and (c) any Defect you cause.

Section 2. Information about the Mission of


Project Gutenberg™
Project Gutenberg™ is synonymous with the free distribution of
electronic works in formats readable by the widest variety of
computers including obsolete, old, middle-aged and new computers.
It exists because of the efforts of hundreds of volunteers and
donations from people in all walks of life.

Volunteers and financial support to provide volunteers with the


assistance they need are critical to reaching Project Gutenberg™’s
goals and ensuring that the Project Gutenberg™ collection will
remain freely available for generations to come. In 2001, the Project
Gutenberg Literary Archive Foundation was created to provide a
secure and permanent future for Project Gutenberg™ and future
generations. To learn more about the Project Gutenberg Literary
Archive Foundation and how your efforts and donations can help,
see Sections 3 and 4 and the Foundation information page at
www.gutenberg.org.

Section 3. Information about the Project


Gutenberg Literary Archive Foundation
The Project Gutenberg Literary Archive Foundation is a non-profit
501(c)(3) educational corporation organized under the laws of the
state of Mississippi and granted tax exempt status by the Internal
Revenue Service. The Foundation’s EIN or federal tax identification
number is 64-6221541. Contributions to the Project Gutenberg
Literary Archive Foundation are tax deductible to the full extent
permitted by U.S. federal laws and your state’s laws.

The Foundation’s business office is located at 809 North 1500 West,


Salt Lake City, UT 84116, (801) 596-1887. Email contact links and up
to date contact information can be found at the Foundation’s website
and official page at www.gutenberg.org/contact

Section 4. Information about Donations to


the Project Gutenberg Literary Archive
Foundation
Project Gutenberg™ depends upon and cannot survive without
widespread public support and donations to carry out its mission of
increasing the number of public domain and licensed works that can
be freely distributed in machine-readable form accessible by the
widest array of equipment including outdated equipment. Many small
donations ($1 to $5,000) are particularly important to maintaining tax
exempt status with the IRS.

The Foundation is committed to complying with the laws regulating


charities and charitable donations in all 50 states of the United
States. Compliance requirements are not uniform and it takes a
considerable effort, much paperwork and many fees to meet and
keep up with these requirements. We do not solicit donations in
locations where we have not received written confirmation of
compliance. To SEND DONATIONS or determine the status of
compliance for any particular state visit www.gutenberg.org/donate.

While we cannot and do not solicit contributions from states where


we have not met the solicitation requirements, we know of no
prohibition against accepting unsolicited donations from donors in
such states who approach us with offers to donate.

International donations are gratefully accepted, but we cannot make


any statements concerning tax treatment of donations received from
outside the United States. U.S. laws alone swamp our small staff.

Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.

Section 5. General Information About Project


Gutenberg™ electronic works
Professor Michael S. Hart was the originator of the Project
Gutenberg™ concept of a library of electronic works that could be
freely shared with anyone. For forty years, he produced and
distributed Project Gutenberg™ eBooks with only a loose network of
volunteer support.

Project Gutenberg™ eBooks are often created from several printed


editions, all of which are confirmed as not protected by copyright in
the U.S. unless a copyright notice is included. Thus, we do not
necessarily keep eBooks in compliance with any particular paper
edition.

Most people start at our website which has the main PG search
facility: www.gutenberg.org.

This website includes information about Project Gutenberg™,


including how to make donations to the Project Gutenberg Literary
Archive Foundation, how to help produce our new eBooks, and how
to subscribe to our email newsletter to hear about new eBooks.
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade

Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.

Let us accompany you on the journey of exploring knowledge and


personal growth!

ebookname.com

You might also like