Essential MATLAB for Engineers and Scientists Hahn pdf download
Essential MATLAB for Engineers and Scientists Hahn pdf download
Hahn download
https://textbookfull.com/product/essential-matlab-for-engineers-
and-scientists-hahn/
https://textbookfull.com/product/essential-matlab-for-engineers-
and-scientists-hahn-2/
https://textbookfull.com/product/essential-matlab-for-engineers-
and-scientists-hahn-3/
https://textbookfull.com/product/essential-matlab-for-engineers-
and-scientists-sixth-edition-edition-hahn/
https://textbookfull.com/product/essential-quotes-for-scientists-
and-engineers-konstantin-k-likharev/
Numerical Methods for Engineers and Scientists Using
MATLAB Second Edition Esfandiari
https://textbookfull.com/product/numerical-methods-for-engineers-
and-scientists-using-matlab-second-edition-esfandiari/
https://textbookfull.com/product/numerical-methods-for-engineers-
and-scientists-using-matlab-ramin-s-esfandiari/
https://textbookfull.com/product/matlab-programming-for-
biomedical-engineers-and-scientists-andrew-p-king-and-paul-
aljabar-auth/
https://textbookfull.com/product/applied-numerical-methods-with-
matlab-for-engineers-and-scientists-fourth-edition-steven-c-
chapra-dr/
https://textbookfull.com/product/the-oceanographers-companion-
essential-nautical-skills-for-seagoing-scientists-and-
engineers-1st-edition-maul/
Essential MATLAB for Engineers
and Scientists
SEVENTH EDITION
Brian D. Hahn
Daniel T. Valentine
Table of Contents
Cover image
Title page
Copyright
Preface
Acknowledgments
Part 1: Essentials
Introduction
Chapter 1: Introduction
Abstract
Summary
Exercises
Abstract
2.1. Variables
2.6. Output
2.8. Decisions
Summary
Exercises
Abstract
Summary
Exercises
Abstract
Summary
Exercises
Abstract
5.1. Examples
Summary
Exercises
Abstract
6.1. Matrices
Summary
Exercises
Abstract
Summary
Exercises
Chapter 8: Loops
Abstract
Summary
Exercises
Abstract
9.5. Animation
Summary
Exercises
Abstract
10.3. Sorting
10.4. Structures
Summary
Abstract
Summary
Chapter exercises
Part 2: Applications
Introduction
Abstract
Summary
Exercises
Abstract
Summary
Exercises
Abstract
14.1. Equations
14.2. Integration
Summary
Exercises
Abstract
Abstract
Exercises
Abstract
17.1. Algebra
17.2. Calculus
Exercises
A.3. Graphics
A.6. Input/output
A.7. load/save
Appendix B: Operators
C.4. Matrices
C.13. 2D graphics
C.14. 3D graphics
C.15. General
Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 11
Chapter 13
Chapter 14
Index
Copyright
Academic Press is an imprint of Elsevier
50 Hampshire Street, 5th Floor, Cambridge, MA 02139, United
States
525 B Street, Suite 1800, San Diego, CA 92101-4495, United States
The Boulevard, Langford Lane, Kidlington, Oxford OX5 1GB, United
Kingdom
125, London Wall, EC2Y, 5AS, United Kingdom
ISBN: 978-0-08-102997-8
Typeset by VTeX
Preface
Daniel T. Valentine
The main reason for a seventh edition of Essential MATLAB for
Engineers and Scientists is to keep up with MATLAB, now in its latest
version (9.5 Version R2018b). Like the previous editions, this one
presents MATLAB as a problem-solving tool for professionals in
science and engineering, as well as students in those fields, who
have no prior knowledge of computer programming.
In keeping with the late Brian D. Hahn's objectives in previous
editions, the seventh edition adopts an informal, tutorial style for
its “teach-yourself” approach, which invites readers to experiment
with MATLAB as a way of discovering how it works. It assumes that
readers have never used this tool in their technical problem solving.
MATLAB, which stands for “Matrix Laboratory,” is based on the
concept of the matrix. Because readers may be unfamiliar with
matrices, ideas and constructs are developed gradually, as the
context requires. The primary audience for Essential MATLAB is
scientists and engineers, and for that reason certain examples
require some first-year college math, particularly in Part 2.
However, these examples are self-contained and can be skipped
without detracting from the development of readers' programming
skills.
MATLAB can be used in two distinct modes. One, in keeping the
modern-age craving for instant gratification, offers immediate
execution of statements (or groups of statements) in the Command
Window. The other, for the more patient, offers conventional
programming by means of script files. Both modes are put to good
use here: The former encouraging cut and paste to take full
advantage of Windows' interactive environment. The latter
stressing programming principles and algorithm development
through structure plans.
Although most of MATLAB's basic (“essential”) features are
covered, this book is neither an exhaustive nor a systematic
reference. This would not be in keeping with its informal style. For
example, constructs such as for and if are not always treated,
initially, in their general form, as is common in many texts, but are
gradually introduced in discussions where they fit naturally. Even
so, they are treated thoroughly here, unlike in other texts that deal
with them only superficially. For the curious, helpful syntax and
function quick references can be found in the appendices.
Essential MATLAB is meant to be used in conjunction with the
MATLAB software. The reader is expected to have the software at
hand in order to work through the exercises and thus discover how
MATLAB does what it is commanded to do. Learning any tool is
possible only through hands-on experience. This is particularly true
with computing tools, which produce correct answers only when
the commands they are given and the accompanying data input are
correct and accurate.
Acknowledgments
I would like to thank Mary, Clara, Zoe Rae and Zach T. for their
support and encouragement. I dedicate the seventh edition of
Essential MATLAB for Engineers and Scientists to them.
PAR T 1
Essentials
OUTLI NE
Introduction
Chapter 1. Introduction
Chapter 8. Loops
Introduction
Abstract
The objectives of this chapter are to enable you to use some
simple MATLAB commands from the Command Window, to
examine various MATLAB desktop and editing features, to
learn some of the new features of the MATLAB R2018b
Desktop, to learn to write scripts in the Editor and Run them
from the Editor, and to learn some of the new features
associated with the tabs (in particular, the PUBLISH and APPS
features). In this chapter you learn that MATLAB is a matrix-
based computer system designed to assist in scientific and
engineering problem solving. You also learn that one way to
use MATLAB is to enter commands and statements on the
command line in the Command Window. In this case the
commands you enter are carried out immediately. You are also
introduced to a number of useful built-in commands and
functions.
Keywords
MATLAB R2018b; Elementary commands; Editing and executing
commands
CHAPTER OUTLINE
Using MATLAB
Arithmetic
Variables
Mathematical functions
Functions and commands
Vectors
Linear equations
Tutorials and demos
The desktop
Using the Editor and running a script
Help, Publish and View
Symbolics in live scripts
APPS
Additional features
Sample program
Cut and paste
Saving a program: Script files
Current directory
Running a script from the Current
Folder browser
A program in action
Summary
Exercises
Supplementary material
The objectives of this chapter are:
FIGURE 1.1 MATLAB desktop illustrating the Home task bar (version
2018b).
1.1.1 Arithmetic
Since we have experience doing arithmetic, we want to examine if
MATLAB does it correctly. This is a required step to gain
confidence in any tool and in our ability to use it.
Type 2+3 after the >> prompt, followed by Enter (press the Enter
key) as indicated by <Enter>:
Commands are only carried out when you enter them. The answer
in this case is, of course, 5. Next try
What about (1)/(2) and (2)^(3)? Can you figure out what the
symbols *, /, and ^ mean? Yes, they are multiplication, division and
exponentiation. The backslash means the denominator is to the left
of the symbol and the numerator is to the right; the result for the
last command is 5.5. This operation is equivalent to 11/2.
Now enter the following commands:
>> 2 .* 3 <Enter>
>> 1 ./ 2 <Enter>
>> 2 .̂ 3 <Enter>
■ The line with the >> prompt is called the command line.
■ You can edit a MATLAB command before pressing Enter by
using various combinations of the Backspace, Left-arrow,
Right-arrow, and Del keys. This helpful feature is called
command-line editing.
■ You can select (and edit) commands you have entered using
Up-arrow and Down-arrow. Remember to press Enter to
have the command carried out (i.e., to run or to execute the
command).
■ MATLAB has a useful editing feature called smart recall. Just
type the first few characters of the command you want to
recall. For example, type the characters 2* and press the Up-
arrow key—this recalls the most recent command starting
with 2*.
How do you think MATLAB would handle 0/1 and 1/0? Try it. If
you insist on using ∞ in a calculation, which you may legitimately
wish to do, type the symbol Inf (short for infinity). Try 13+Inf and
29/Inf.
Another special value that you may meet is NaN, which stands for
Not-a-Number. It is the answer to calculations like 0/0.
1.1.2 Variables
Now we will assign values to variables to do arithmetic operations
with the variables. First enter the command (statement in
programming jargon) a = 2. The MATLAB command line should
look like this:
>> a = 2 <Enter>
"Rikolliset?"
"Kyllä tiedän!"
"Sitä en tiedä."
"Mihin päin?"
Sten riensi luo ja koetti häntä tyynnyttää, mutta se oli turha vaiva.
"Kuka on surmaaja?" kysyi hän kiivaasti.
"Ei, täällä ja nyt heti tahdon tietää sen! Sanon petturiksi sen, joka
kauemmin salaa totuuden."
"Rangaistuksen syyllisille!"
Kun kirstun kansi oli pantu paikoilleen, otti Sten asemiesten kera
kirstun ja he kantoivat sen kirkkotarhaan. Siellä laskettiin se
hautaan, ritari heitti ensimäiset multalapiot, asemiehet päättivät
työn.
*****
"Ei se, jonka te näytätte aikovan tuoda tänne, ritari", puuttui Dordi
jokseenkin kiihkeästi puheeseen.
"Kristina!" vastasi tämä. "Nyt täytyy minun laittaa häitä, sillä hän
menee naimisiin."
"Kenen kanssa?"
"Kovia on hän saanut kokea", vastasi ritari. "Isä kuoli kolme päivää
ennen kuin tyttären häät ehdittiin viettää; sen johdosta on ne lykätty
uudestaan, luultavasti pitkäksikin ajaksi."
Erik herra oli ollut mykkänä kuulijana, nyt sanoi hän vakavasti:
"Magdalena hänenkin?"
"Ei, Dordi!"
"Niin täytyy."
"Nukkeani ei hän saa", sanoi tyttö ja otti sen jälleen käsivarrelleen.
"Minä kätken sen arkkuun niin hyvin, ettei hän saa sitä edes
nähdäkään."
"Minulle kävi liian raskaaksi oleskella yksin kotona", sanoi hän. "Ja
kun nyt hääni on määrätty vietettäväksi kolmen kuukauden kuluttua,
tarvitsisi minun vähän vilpastuttaa mieltäni, ettei Pietari herra saisi
ylen suruista morsianta!"
"Ihmeellisiä!"
"Sairauden aikanako?"
"Sinäkö, Katarina?"
"Ja sitten?"
"En uskaltanut sitä enää pyytää, niin suunniltaan hän joutui, kun
siitä mainitsin."
"Katarina parka!"
"Ja sormus?"
"Pietari herra oli pannut sen pöydälle, mutta kun hän sitten aikoi
ottaa sen, oli se kadonnut."
"Niin, varmaankin."
Toisin oli sen nuoren parven laita, minkä keskuudessa hän oleskeli.
Krister ja Erik olivat tosin olleet monessa kovassa kahakassa, mutta
harrastus sotaan oli lopussa. Nuoret neitsyet käsittivät sodasta
ainoastaan sen hirveyden.
Kun Dordi oli jäänyt yksin serkkunsa kanssa, hypähti hän kiihkeästi
pystyyn, silmät leimusivat, ja hän huudahti vihasta vapisevalla
äänellä:
"On mahdollista, että teen sinulle väärin. Minkä sinä sille voit, että
olet tuhat kertaa rakastettavampi kuin minä!"
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.
textbookfull.com