System Simulation Techniques with MATLAB and Simulink
eBook - ePub

System Simulation Techniques with MATLAB and Simulink

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

System Simulation Techniques with MATLAB and Simulink

About this book

System Simulation Techniques with MATLAB and Simulink comprehensively explains how to use MATLAB and Simulink to perform dynamic systems simulation tasks for engineering and non-engineering applications.

This book begins with covering the fundamentals of MATLAB programming and applications, and the solutions to different mathematical problems in simulation. The fundamentals of Simulink modelling and simulation are then presented, followed by coverage of intermediate level modelling skills and more advanced techniques in Simulink modelling and applications.

Finally the modelling and simulation of engineering and non-engineering systems are presented. The areas covered include electrical, electronic systems, mechanical systems, pharmacokinetic systems, video and image processing systems and discrete event systems.  Hardware-in-the-loop simulation and real-time application are also discussed.

Key features:

  • Progressive building of simulation skills using Simulink, from basics through to advanced levels, with illustrations and examples
  • Wide coverage of simulation topics of applications from engineering to non-engineering systems
  • Dedicated chapter on hardware-in-the-loop simulation and real time control
  • End of chapter exercises
  • A companion website hosting a solution manual and powerpoint slides

System Simulation Techniques with MATLAB and Simulink is a suitable textbook for senior undergraduate/postgraduate courses covering modelling and simulation, and is also an ideal reference for researchers and practitioners in industry.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access System Simulation Techniques with MATLAB and Simulink by Dingyü Xue,Yang Chen,Dingy¿ Xue in PDF and/or ePUB format, as well as other popular books in Physical Sciences & Mechanics. We have over one million books available in our catalogue for you to explore.

Information

Publisher
Wiley
Year
2013
Print ISBN
9781118647929
eBook ISBN
9781118694374
Edition
1
Subtopic
Mechanics
1
Introduction to System Simulation Techniques and Applications
1.1 Overview of System Simulation Techniques
Systems are the integrated wholes composed of interrelated and interacting entities; these could be engineering systems or non-engineering systems. Engineering systems are the whole composed of interacting components such that certain system objectives can be achieved. For instance, motor drive systems are composed of an actuating component, a power transfer component and a signal measurement component, so as to control the motor speed or position, among other objectives.
The field of non-engineering systems is much wider. From universe to micro world, any integrated whole can also be regarded as a system, since there are interrelated and interacting relationships.
In order to quantitatively study the behavior of a system, the internal characteristics and interacting relationship should be extracted, to construct a model of the system. System models can be classified as physical models and mathematical models. Following the rapid development and utilization of computer technology, the application of mathematical models is more and more popular.
A mathematical model of a system is a mathematical expression describing the dynamical behavior of the system. They can be used to describe the relationship of quantities in the system and they are the basis of system analysis and design. From the viewpoint of the type of mathematical model, systems can be classified as continuous-time systems, discrete-time systems, discrete event systems and hybrid systems. Systems can also be classified as subclasses of linear, nonlinear, time invariant, time varying, lumped parameters, distributed parameters, deterministic and stochastic systems.
System simulation is a subject within which the system behavior can be studied on the basis of the mathematical models of the actual systems. Usually computer simulation of the systems is the main topic of the subject, including the topics of systems, modeling, simulation algorithms, computer programming, display of simulation results, and validation of simulation results.
Of all the topics listed above, simulation algorithms and computer programming are the most important topics, and determine whether the original problems can be solved. The modeling and simulation result display and validation can be solved easily with MATLAB, and Simulink, the most authoritative and practical computer language. Using MATLAB and Simulink is the innovative characteristic of the whole book. In Section 1.2, a brief introduction to the historical development and future expectation of computer mathematical software and simulation languages will be given. In Section 1.3, development of MATLAB/Simulink programming is presented, and practical examples are explored, such that the reader can start to experience the powerful facilities of MATLAB. In Section 1.4, the main contents and the characteristic behavior of systems are presented.
1.2 Development of Simulation Software
Historically, computer simulation techniques went through the following stages of development: In the 1940s, analog simulation was the major way of simulation. Digital simulation began in 1950s, and in the 1960s, the first simulation languages and packages began to emerge. In the 1980s, development of object oriented simulation techniques was the leading trend. With the popularity and wide availability of digital computers, in the past 30 years, a great many professional computer simulation languages and tools have appeared, such as CSMP, ACSL, SIMNON, MATLAB/Simulink, MatrixX/System Build and CSMP-C. Because MATLAB/Simulink has become more and more popular and powerful, most of the above-mentioned simulation packages are no longer available. MATLAB/Simulink has became the de facto standard computer language and tool for system simulation.
1.2.1 Development of Earlier Mathematics Packages
The rapid development of digital computers and programming languages powered research into numerical computation. In the early stages of the development of scientific computation, a lot of famous packages emerged such as the LINPACK package [1] – linear algebraic equation solver, the eigenvalue-based package EISPACK [2, 3], the NAG package [4] developed by the Numerical Algorithm Group in Oxford, and the subroutines provided in the well-established book Numerical Recipes [5]. These packages were very popular and had a very good reputation among the users worldwide.
The well-established EISPACK and LINPACK packages are mainly used to solve eigenvalue problems and singular value decomposition based linear algebra algorithms. These packages were all written in Fortran.
For instance, to find all the eigenvalues of a real square matrix A of size N, and the eigenvalues are represented by WR and WI, for real and imaginary parts, and the eigenvector matrix is represented by Z, the following subroutine calls are suggested in the EISPACK package
C01G001
Before the above subroutine calls, you should write a piece of code to assign the matrix to the program. Then with the above statements, the main program can be written. After the compiling and linking process, the executable file can be generated. The results can finally be obtained with the executable file.
A large number of numerical subroutines are provided in the NAG package and in the book, Numerical Recipes [5]. The NAG package is even more professional since many more subroutines are provided. In Numerical Recipes, a large number of high-quality subroutines, written in C, Pascal and Fortran, are provided; these subroutines can be used directly by researchers and engineers. There are more than 200 effective and reliable subroutines, and the subroutines are trusted by researchers worldwide.
Readers with a knowledge of Fortran and C programming might already know that, in those two programming languages, the scientific computation of matrices and graphics are rather complicated. For instance, to solve a linear algebraic equation, the elements in the matrices should be assigned first. Then a subroutine has to be written to implement the solution algorithms, such as the Gaussian elimination algorithm, and finally the result has to be output. If the subroutine written or selected is not reliable, misleading conclusions may be reached. Normally such a low-level subroutine can consist of over 100 statements. A small programming error can result in wrong conclusions.
Writing programs with packages has the following disadvantages
  • Inconvenience. If the user is not familiar with the package being used, it might be very difficult to write programs with it, and it is always error-prone. If the slightest error is made in the program, erroneous results and misleading conclusions can be obtained.
  • Trivial procedures are involved. A main program has to be written, and compiling and linking to the program should be made to generate executable files. A lot of effort is needed to debug the program and to validate the program.
  • Too many executables. To solve a specific problem, a dedicated program has to be prepared. An executable file must be generated for this specific problem. The code reuse is not good, where a lot of similar problems may have to be solved.
  • Not suitable for data transfer between independent programs. Each program can solve one particular problem. It might be difficult to transfer data from one standalone program to another. And it might not be suitable for solving one common problem by several standalone programs.
  • Difficult to allocate the array size. In many mathematical computation problems the most important variables can be matrices. In most packages, the dimensions of the matrices might be set very low; for instance, in the package for control systems analysis and design in [6], the dimension is normally set to 10. It cannot be used to solve very high order systems.
Also, most earlier packages were written in Fortran. The plotting facilities of standard Fortran are not very good. Some other packages such as GINO-F [7] have to be used instead. However, on some platforms this package may not be available.
Apart from the above-mentioned shortcomings there is yet another difficult problem. A program written in Fortran or C cannot be easily transported to other platforms, since the source code on different platforms may not be compatible. For instance, a program written for Microsoft Windows cannot be executed at all on Linux without changes. Modifications must be made to the source code, and the source code has to be recompiled to generate executables. This is a rather difficult task, especially when plotting facilities are part of the source code.
Despite this, the development of mathematical packages is still going on. The most advanced numerical algorithms are implemented in mathematical packages, and more effective, more accurate and faster mathematical packages are still being produced. For instance, in the field of numerical linear algebra, the brand new LAPACK is becoming the leading mathematical package [8]. However, the objective of the new packages is no longer to support the average user; they are provided as low-level support to mathematical languages. In new versions of MATLAB, the base packages LINPACK and EISPACK have been abandoned, and LAPACK is used instead to provide support for linear algebra computation.
1.2.2 Development of Simulation Software and Languages
It can be seen from the limitations of these software packages that it might be rather complicated to complete simulation tasks with them. It is not wise to restart everything from low-level programming, and ab...

Table of contents

  1. Cover
  2. Title Page
  3. Copyright
  4. Foreword
  5. Preface
  6. 1 Introduction to System Simulation Techniques and Applications
  7. 2 Fundamentals of MATLAB Programming
  8. 3 MATLAB Applications in Scientific Computations
  9. 4 Mathematical Modeling and Simulation with Simulink
  10. 5 Commonly Used Blocks and Intermediate-level Modeling Skills
  11. 6 Advanced Techniques in Simulink Modeling and Applications
  12. 7 Modeling and Simulation of Engineering Systems
  13. 8 Modeling and Simulation of Non-Engineering Systems
  14. 9 Hardware-in-the-loop Simulation and Real-time Control
  15. Appendix: Functions and Models
  16. Index