Download ebooks file MATLAB for Engineering Applications, 5e ISE 5th/ISE Edition William J. Palm Iii - eBook PDF all chapters
Download ebooks file MATLAB for Engineering Applications, 5e ISE 5th/ISE Edition William J. Palm Iii - eBook PDF all chapters
com
https://ebookluna.com/download/matlab-for-engineering-
applications-5e-ise-ebook-pdf/
OR CLICK BUTTON
DOWNLOAD NOW
https://ebookluna.com/product/system-dynamics-3rd-edition-by-william-
j-palm-iii-ebook-pdf/
ebookluna.com
https://ebookluna.com/download/system-dynamics-4th-edition-ebook-pdf/
ebookluna.com
https://ebookluna.com/product/ebook-pdf-matlab-for-engineering-
applications-4th-edition/
ebookluna.com
https://ebookluna.com/download/engineering-mathematics-for-semesters-
iii-and-iv-ebook-pdf/
ebookluna.com
https://ebookluna.com/product/ebook-pdf-system-dynamics-4th-edition-
by-william-palm/
ebookluna.com
https://ebookluna.com/product/ebook-pdf-matlab-an-introduction-with-
applications-5th-edition/
ebookluna.com
https://ebookluna.com/download/matlab-programming-for-engineers-ebook-
pdf/
ebookluna.com
https://ebookluna.com/download/oil-palm-biomass-for-composite-panels-
fundamentals-processing-and-applications-ebook-pdf/
ebookluna.com
MATLAB® for
page i
Engineering
Applications
Published by McGraw Hill LLC, 1325 Avenue of the Americas, New York,
NY 10019. Copyright ©2023 by McGraw Hill LLC. All rights reserved.
Printed in the United States of America. No part of this publication may be
reproduced or distributed in any form or by any means, or stored in a
database or retrieval system, without the prior written consent of McGraw
Hill LLC, including, but not limited to, in any network or other electronic
storage or transmission, or broadcast for distance learning.
1 2 3 4 5 6 7 8 9 LCR 27 26 25 24 23 22
ISBN 978-1-265-13919-3
MHID 1-265-13919-9
All credits appearing on page or at the end of the book are considered to be
an extension of the copyright page.
The Internet addresses listed in the text were accurate at the time of
publication. The inclusion of a website does not indicate an endorsement by
the authors or McGraw Hill LLC, and McGraw Hill LLC does not
guarantee the accuracy of the information presented at these sites.
mheducation.com/highered
To my sisters, Linda and Chris, and to my parents, page iii
CHAPTER 1
An Overview of MATLAB® 3
1.1 MATLAB Interactive Sessions 4
1.2 The Toolstrip 17
1.3 Built-In Functions, Arrays, and Plots 18
1.4 Working with Files 24
1.5 The MATLAB Help System 32
1.6 Problem-Solving Methodologies 35
1.7 Summary 42
Problems 43
CHAPTER 2
Numeric, Cell, and Structure Arrays 51
2.1 One- and Two-Dimensional Numeric Arrays 52
2.2 Multidimensional Numeric Arrays 61
2.3 Element-by-Element Operations 62
2.4 Matrix Operations 72
2.5 Polynomial Operations Using Arrays 91
2.6 Cell Arrays 96
2.7 Structure Arrays 98
2.8 Summary 102
Problems 103
CHAPTER 3
Functions 121
3.1 Elementary Mathematical Functions 121
3.2 User-Defined Functions 128
3.3 Additional Function Types 143
3.4 File Functions 158
3.5 Summary 160
Problems 161
CHAPTER 4
Programming with MATLAB 169
4.1 Program Design and Development 170
4.2 Relational Operators and Logical Variables 177
4.3 Logical Operators and Functions 179
4.4 Conditional Statements 186
4.5 for Loops 194
4.6 while Loops 206
4.7 The switch Structure 212
4.8 Debugging MATLAB Programs 214
4.9 Additional Examples and Applications 217
4.10 Summary 231
Problems 232
CHAPTER 5
Advanced Plotting 251
5.1 xy Plotting Functions 251
5.2 Additional Commands and Plot Types 261
5.3 Interactive Plotting in MATLAB 278
5.4 Three-Dimensional Plots 280
5.5 Summary 286
Problems 287
CHAPTER 6
Model Building and Regression 299
6.1 Function Discovery 299
6.2 Regression 310
6.3 The Basic Fitting Interface 326
6.4 Summary 329
Problems 330
7
page vi
CHAPTER
Statistics, Probability, and Interpolation 341
7.1 Statistics and Histograms 342
7.2 The Normal Distribution 346
7.3 Random Number Generation 352
7.4 Interpolation 361
7.5 Summary 370
Problems 370
CHAPTER 8
Linear Algebraic Equations 379
8.1 Matrix Methods for Linear Equations 380
8.2 The Left-Division Method 383
8.3 Underdetermined Systems 389
8.4 Overdetermined Systems 398
8.5 A General Solution Program 402
8.6 Summary 404
Problems 405
CHAPTER 9
Numerical Methods for Calculus and Differential Equations
419
9.1 Numerical Integration 420
9.2 Numerical Differentiation 428
9.3 First-Order Differential Equations 431
9.4 Higher-Order Differential Equations 439
9.5 Special Methods for Linear Equations 445
9.6 Summary 458
Problems 459
CHAPTER 10
Simulink 471
10.1 Simulation Diagrams 472
10.2 Introduction to Simulink 473
10.3 Linear State-Variable Models 478
10.4 Piecewise-Linear Models 481
10.5 Transfer-Function Models 487
10.6 Nonlinear State-Variable Models 489
10.7 Subsystems 491
10.8 Dead Time in Models 496
10.9 Simulation of a Nonlinear Vehicle Suspension Model 499
10.10 Control Systems and Hardware-in-the-Loop Testing 503
10.11 Summary 513
Problems 514
CHAPTER 11
Symbolic Processing with MATLAB 525
11.1 Symbolic Expressions and Algebra 527
11.2 Algebraic and Transcendental Equations 536
11.3 Calculus 543
11.4 Differential Equations 555
11.5 Laplace Transforms 562
11.6 Symbolic Linear Algebra 570
11.7 Summary 575
Problems 576
CHAPTER 12
Projects with Matlab 589
12.1 MATLAB Mobile 590
12.2 Programming Game Projects in MATLAB 595
12.3 The MATLAB App Designer 600
APPENDIX A
Guide to Commands and Functions in This Text 603
APPENDIX B
Animation and Sound in MATLAB 615
APPENDIX C
References 626
APPENDIX D
Formatted Output in MATLAB 627
Answers to Selected Problems 631
Index 634
Numbered Examples page vii
F
ormerly used mainly by specialists in signal processing and numerical
analysis, MATLAB® has achieved widespread and enthusiastic
acceptance throughout the engineering community. Many engineering
schools require a course based entirely or in part on MATLAB early in the
curriculum. MATLAB is programmable and has the same logical,
relational, conditional, and loop structures as other programming languages.
Thus it can be used to teach programming principles. In most engineering
schools, MATLAB is the principal computational tool used throughout the
curriculum. In some technical specialties, such as signal processing and
control systems, it is the standard software package for analysis and design.
The popularity of MATLAB is partly due to its long history, and thus it is
well developed and well tested. People trust its answers. Its popularity is
also due to its user interface, which provides an easy-to-use interactive
environment that includes extensive numerical computation and
visualization capabilities. Its compactness is a big advantage. For example,
you can solve a set of many linear algebraic equations with just three lines
of code, a feat that is impossible with traditional programming languages.
MATLAB is also extensible; currently more than 30 “toolboxes” in various
application areas can be used with MATLAB to add new commands and
capabilities.
MATLAB is available for a number of operating systems. It is
compatible across all these platforms, which enables users to share their
programs, insights, and ideas. This text is based on release R2021a of the
software. This includes MATLAB version 9.10. Some of the material in
Chapter 9 is based on the Control System toolbox, Version 10.10. Chapter
10 is based on Version 10.3 of Simulink®, and Chapter 11 is based on
Version 8.7 of the Symbolic Math toolbox.
TEXT ORGANIZATION
In addition to updating material from the previous edition to include new
features, new functions, and changes in syntax and function names, the text
incorporates the many suggestions made by reviewers and other users.
More examples and homework problems have been added.
The text consists of 12 chapters. The first five chapters constitute a basic
course in MATLAB. The remaining seven chapters are independent of each
other and cover more advanced applications of MATLAB, the Control
Systems toolbox, Simulink, and the Symbolic Math toolbox.
Chapter 1 gives an overview of MATLAB features, including its
windows and menu structures. It also introduces the problem-solving
methodology.
Chapter 2 introduces the concept of an array, which is the fundamental
data element in MATLAB, and describes how to use numeric arrays, cell
arrays, and structure arrays for basic mathematical operations.
Chapter 3 discusses the use of functions and files. MATLAB has an
extensive number of built-in math functions, and users can define their own
functions and save them as a file for reuse.
Chapter 4 introduces programming with MATLAB and covers relational
and logical operators, conditional statements, for and while loops, and the
switch structure.
Chapter 5 deals with two- and three-dimensional plotting. It first
establishes standards for professional-looking, useful plots. In the author’s
experience, beginning students are not aware of these standards, so they are
emphasized. The chapter then covers MATLAB commands for producing
different types of plots and for controlling their appearance. The Live
Editor, which is a major addition to MATLAB, is covered in Section 5.1.
Chapter 6 covers function discovery, which uses data plots to discover a
mathematical description of the data and is a useful tool for model building.
It is a common application of plotting, and a separate section is devoted to
this topic. The chapter also treats polynomial and multiple linear regression
as part of its modeling coverage.
Chapter 7 reviews basic statistics and probability and shows how to use
MATLAB to generate histograms, perform calculations with the normal
distribution, and create random number simulations. The chapter concludes
with linear and cubic spline interpolation.
Chapter 8 covers the solution of linear algebraic equations, which arise in
applications in all fields of engineering. This coverage establishes the
terminology and some important concepts required to use the computer
methods properly. The chapter then shows how to use MATLAB to solve
underdetermined and overdetermined systems of linear equations.
The text has the following special features, which have been designed to
enhance its usefulness as a reference.
■ Throughout each of the chapters, numerous tables summarize the
commands and functions as they are introduced.
■ Appendix A is a complete summary of all the commands and functions
described in the text, grouped by category, along with the number of the
page on which they are described.
■ At the end of the chapter is a list of the key terms introduced in the
chapter, with a reference to where they are introduced.
■ The index has four sections: a listing of MATLAB symbols, an
alphabetical list of MATLAB commands and functions, a list of
Simulink block names, and an alphabetical list of topics.
PEDAGOGICAL AIDS
The following pedagogical aids have been included:
■ Each chapter begins with an overview.
■ Test Your Understanding exercises appear throughout the chapters near
the relevant text. These relatively straightforward exercises allow
readers to assess their grasp of the material as soon as it is covered. In
most cases the answer to the exercise is given with the exercise.
Students should work these exercises as they are encountered.
■ Each chapter ends with numerous problems, grouped according to the
relevant section.
■ Each chapter contains numerous practical examples. The major
examples are numbered.
■ Each chapter has a summary section that reviews the chapter’s
objectives.
■ Answers to many end-of-chapter problems appear at the end of the text.
These problems are denoted by an asterisk next to their number (for
example, 15*).
Two features have been included to motivate the student toward
MATLAB and the engineering profession:
■ Most of the examples and the problems deal with engineering
applications. These are drawn from a variety of engineering fields and
show realistic applications of MATLAB. A guide to these examples
appears on page vii.
ONLINE RESOURCES
An Instructor’s Manual is available online for instructors who have adopted
this text. This manual contains the complete solutions to all of the Test Your
Understanding exercises and to all of the chapter problems. The text
website also has downloadable files containing the major programs and
PowerPoint slides keyed to the text.
MATLAB INFORMATION
For MATLAB and Simulink product information, please contact:
_________
®
MATLAB and Simulink are registered trademarks of The MathWorks, Inc.
page xiv
page xv
page 1
Engineering in the 21st Century. page 2
..
Remote Exploration
Source: NASA
I
t will be many years before humans can travel to other planets. In the
meantime, unmanned probes have been rapidly increasing our knowledge
of the universe. Their use will increase in the future as our technology
develops to make them more reliable and more versatile. Better sensors are
expected for imaging and other data collection. Improved robotic devices
will make these probes more autonomous, and more capable of interacting
with their environment, instead of just observing it.
NASA’s planetary rover Sojourner landed on Mars on July 4, 1997, and
excited people on Earth while they watched it successfully explore the
Martian surface to determine wheel-soil interactions, to analyze rocks and
soil, and to return images of the lander for damage assessment.
Then in early 2004, two improved rovers, Spirit and Opportunity, landed
on opposite sides of the planet. In one of the major discoveries of the 21st
century, they obtained strong evidence that water once existed on Mars in
significant amounts. Although planned to operate for only 90 Martian days,
Spirit operated for seven years. The rover likely lost power due to
excessively cold internal temperatures. Opportunity went inactive in 2018,
having already exceeded its planned operational life by many Earth years.
The rover Curiosity used the innovative “skycrane” to land on Mars in
2012 less than 2.4 km (1.5 mi) from its intended target after a 563,000,000
km (350,000,000 mi) journey. It was designed to investigate the Martian
climate and geology; to assess whether the Gale crater ever had an
environment suitable for microbial life, and to determine the habitability of
the site for future human exploration. Curiosity has a mass of 899 kg (1,982
lb) including 80 kg (180 lb) of instruments. The rover is 2.9 m (9.5 ft) long
by 2.7 m (8.9 ft) wide by 2.2 m (7.2 ft) in height. It discovered unexplained
variations in oxygen and methane, and found remnants of an ancient oasis.
Perseverance is a car-sized rover designed to explore the crater Jezero on
Mars. It was launched in July 2020 and successfully landed in February
2021. Perseverance has a design similar to Curiosity, but also carries the
experimental mini-helicopter Ingenuity that was able to fly in the weak
Martian atmosphere. The rover is intended to seek out evidence of former
microbial life, to collect rock and soil samples to store for retrieval by a
future mission, and to test oxygen production from the Martian atmosphere
in support of future crewed missions.
All engineering disciplines were involved with the rover projects. From
the design of the rocket propulsion of the launch vehicles and the calculation
of the interplanetary trajectories, to the design of the rovers’ systems,
MATLAB was used in many of these applications, and it is well suited to
assist designers of future probes and autonomous vehicles like the Mars
rovers. ■
page 3
CHAPTER
1
An Overview of MATLAB®*
OUTLINE
1.1 MATLAB Interactive Sessions
1.2 The Toolstrip
1.3 Built-In Functions, Arrays, and Plots
1.4 Working with Files
1.5 The MATLAB Help System
1.6 Problem-Solving Methodologies
1.7 Summary
Problems
This chapter covers many of the basic features of MATLAB. After you have
finished this chapter, you will be able to use MATLAB to solve many kinds
of problems. Section 1.1 provides an introduction to MATLAB as an
interactive calculator. Section 1.2 covers the main menus and the Toolstrip.
Section 1.3 introduces built-in functions, arrays, and plots. Section 1.4
discusses how to create, edit, and save MATLAB programs. Section 1.5
introduces the extensive MATLAB Help System and Section 1.6 introduces
the methodology of engineering problem solving, with emphasis on the use
of computers.
[297]
[298]
[299]
[300]
[301]
[302]
[303]
[304]
[305]
[307]
[308]
Benham, Quart. J. Micr. Sci. xxxii. 1891, p. 325. See also Bourne
(nephridium of Polynoë), Tr. Linn. Soc. (Zool.), ii. 1883, p. 357;
Meyer, for nephridium of Terebellidae, Sabellidae, and Cirratulidae,
in Mt. Zool. Stat. Neapel, vii. 1887, p. 592.
[309]
[310]
[311]
[312]
[313]
In Coabangia (see p. 284) the anus is near the anterior end, on the
ventral surface.
[314]
[315]
[316]
[317]
[318]
[319]
[320]
[321]
[322]
Eisig, "Die Capitelliden," Fauna u. Flora G. v. Neapel, Monogr. xvi.
1887, p. 331.
[323]
[324]
[325]
[326]
[327]
[328]
[329]
[330]
[331]
[332]
[333]
[334]
[335]
[336]
[337]
"Challenger" Reports, vol. xii. 1885, "Polychaeta," p. 198; and Oka,
Zoolog. Centralbl. ii. 1895, p. 591.
[338]
[339]
Dalyell, The Powers of the Creator revealed, etc., vol. ii. 1853, p.
225 et seq.
[340]
[341]
[342]
[343]
See M‘Intosh, Ann. Mag. Nat. Hist. (ser. 4) ii. 1868, p. 276.
[344]
[345]
[346]
[347]
Watson, Journ. R. Mic. Soc. 1890, p. 685; see also Dalyell, loc. cit.
ii. p. 195.
[348]
[349]
For pelagic forms, see Camille Viguier, Arch. de Zool. Expér. (ser.
2) iv. 1886, p. 347; also Reibisch, Die pelag. Phyllodociden u.
Typhloscoleciden d. Plankton Exped. 1895.
[350]
[351]
[352]
[353]
[354]
[355]
[357]
For a list of parasitic Polychaetes see St. Joseph, Ann. Sci. Nat.
(ser. 7) v. 1888, p. 141.
[358]
[359]
[360]
[361]
[362]
[363]
[364]
[365]
Meyer (Mt. Zool. Stat. Neapel, vii. 1887, p. 669, note) suggests
that the tentacular filaments of Cirratulids are really prostomial, but
have shifted back on to the peristomium, or even farther.
[366]
[367]
[368]
[369]
[370]
[371]
[372]
[373]
[374]
[375]
[377]
[378]
[379]
[380]
[381]
[382]
[383]
[384]
For literature, see Benham, Quart. J. Micr. Sci. xxxix. part 1, 1896,
p. 1.
[386]
[387]
[388]
[389]
[390]
[391]
[392]
For anatomy see Meyer, Mt. Zool. Stat. Neapel, vii. 1887.
[393]
[394]
[395]
Closely allied is Manayunkia Leidy, which occurs in fresh-water
lakes of America. Another fresh-water genus is Coabangia Giard,
which perhaps deserves the creation of a special family. The anus
is ventral and anterior. The chaetae are peculiarly arranged, dorsal
uncini being present only on four segments. The first body
segment carries a ventral bundle of five great "palmate" chaetae.
[396]
For the anatomy see Meyer, Mt. Stat. Neapel, vii. 1887; see also
above, p. 306.
[397]
[398]
[399]
Mt. Zool. Stat. Neapel, xii. 1896, p. 227; where, too, see literature.
[400]
[401]
Quart. J. Micr. Sci. (n.s.) vol. iv. 1864, p. 258; and v. pp. 7, 99.
[402]
[403]
[404]
Naturg. ein. Wurm-Arten d. süssen u. salzigen Wasser,
Copenhagen, 1771.
[405]
[406]
[407]
[408]
[409]
[410]
[411]
[412]
[413]
[414]
[416]
[417]
[418]
[419]
[420]
[421]
[422]
[423]
[424]
[425]
See my text-book of Zoogeography (Cambridge, 1895) for fuller
treatment.
[426]
[427]
[428]
[429]
Oxford, 1895.
[430]
[431]
[432]
[433]
Beddard, Trans. Roy. Soc. Edin. xxxv. 1890, p. 629, and xxxvi.
1892, p. 1.
[434]
A. G. Bourne, "On the Naidiform Oligochaeta," Quart. J. Micr. Sci.
xxxii. 1891, p. 335.
[435]
[436]
[437]
[438]
[439]
[440]
See Spencer, Proc. Roy. Soc. Vict. v. 1893, and Fletcher, P. Linn.
Soc. N.S.W. 1886-1888, for Australian forms; Rosa, Ann. Mus. civ.
Genova, vi. 1886, x. 1890, and xii. 1892, for Oriental species, etc.
[441]
[442]
[443]
[444]
Beddard, P. Z. S. 1885 and 1895, for Antarctic Acanthodrilids;
Michaelsen, in Jahrb. Hamburg. Anst. 1888-95, for Benhamia.
[445]
[446]
[447]
[448]
[449]
[450]
[451]
[453]
[454]
[455]
[456]
[457]
[458]
Loc. cit.
[459]
Quart. J. Micr. Sci. xxiv. 1884, p. 419; see also ibid. xxxiv. 1893, p.
545, which is mainly a criticism of Bolsius' additions to the very
considerable literature upon the Leech nephridium.
[460]
[461]
Zeitschr. wiss. Zool. lviii. 1894, p. 440; and Zool. Jahrb. Anat. iv.
1891, p. 697.
[462]
[463]
[464]
"Hirudinées de l'Italie," etc., Boll. Mus. Zool. Torino, vol. ix. 1894,
No. 192. See also Apathy, "Süsswasser-Hirudineen," Zool. Jahrb.
Syst. iii. 1888, p. 725.
[465]
[466]
[467]
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.
ebookluna.com