MATLAB An Introduction with Applications Fourth Edition Amos Gilat pdf download
MATLAB An Introduction with Applications Fourth Edition Amos Gilat pdf download
https://ebookfinal.com/download/matlab-an-introduction-with-
applications-fourth-edition-amos-gilat/
https://ebookfinal.com/download/matlab-an-introduction-with-
applications-3rd-edition-amos-gilat/
https://ebookfinal.com/download/matlab-4th-edition-an-introduction-
with-applications-amos-gilat/
https://ebookfinal.com/download/probability-2nd-edition-an-
introduction-with-statistical-applications-john-j-kinney/
https://ebookfinal.com/download/abstract-algebra-an-introduction-with-
applications-2nd-edition-derek-j-s-robinson/
An Introduction to Stochastic Modeling Fourth Edition
Pinsky
https://ebookfinal.com/download/an-introduction-to-stochastic-
modeling-fourth-edition-pinsky/
https://ebookfinal.com/download/signals-and-systems-with-matlab-
applications-2nd-edition-steven-t-karris/
https://ebookfinal.com/download/an-introduction-to-numerical-methods-
a-matlab-approach-third-edition-guenther/
https://ebookfinal.com/download/computational-nanotechnology-modeling-
and-applications-with-matlab-r-sarhan-m-musa/
https://ebookfinal.com/download/an-introduction-to-model-based-survey-
sampling-with-applications-1st-edition-ray-chambers/
MATLAB An Introduction with Applications Fourth
Edition Amos Gilat Digital Instant Download
Author(s): Amos Gilat
ISBN(s): 9780470767856, 0470767855
Edition: 4th
File Details: PDF, 9.33 MB
Year: 2011
Language: english
This page intentionally left blank
MATLAB
®
An Introduction
with Applications
This page intentionally left blank
MATLAB
®
An Introduction
with Applications
Fourth Edition
Amos Gilat
Department of Mechanical Engineering
The Ohio State University
This book was printed and bound by Malloy Lithographers. The cover was printed by
Malloy Lithographers.
Copyright © 2011 John Wiley & Sons, Inc. All rights reserved. No part of this publi-
cation may be reproduced, stored in a retrieval system or transmitted in any form or
by any means, electronic, mechanical, photocopying, recording, scanning or other-
wise, except as permitted under Sections 107 or 108 of the 1976 United States Copy-
right Act, without either the prior written permission of the Publisher, or authorization
through payment of the appropriate per-copy fee to the Copyright Clearance Center,
Inc. 222 Rosewood Drive, Danvers, MA 01923, website www.copyright.com.
Requests to the Publisher for permission should be addressed to the Permissions
Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030-5774,
(201)748-6011, fax (201)748-6008, website http://www.wiley.com/go/permissions.
"Evaluation copies are provided to qualified academics and professionals for review
purposes only, for use in their courses during the next academic year. These copies
are licensed and may not be sold or transferred to a third party. Upon completion of
the review period, please return the evaluation copy to Wiley. Return instructions and
a free of charge return shipping label are available at www.wiley.com/go/returnlabel.
Outside of the United States, please contact your local representative."
ISBN-13 978-0-470-76785-6
of Iowa; Brian Vick, Virginia Polytechnic Institute and State University; Jay
Weitzen, University of Massachusetts, Lowell; and Jane Patterson Fife, The Ohio
State University. In addition, I would like to acknowledge Daniel Sayre, Ken San-
tor, and Katie Singleton, all from John Wiley & Sons, who supported the produc-
tion of the Fourth edition.
I hope that the book will be useful and will help the users of MATLAB to
enjoy the software.
Amos Gilat
Columbus, Ohio
November, 2010
gilat.1@osu.edu
assumption is that once these foundations are well understood, the student will be
able to learn advanced topics easily by using the information in the Help menu.
The order in which the topics are presented in this book was chosen
carefully, based on several years of experience in teaching MATLAB in an
introductory engineering course. The topics are presented in an order that allows
the student to follow the book chapter after chapter. Every topic is presented
completely in one place and then used in the following chapters.
The first chapter describes the basic structure and features of MATLAB and
how to use the program for simple arithmetic operations with scalars as with a
calculator. Script files are introduced at the end of the chapter. They allow the
student to write, save, and execute simple MATLAB programs. The next two
chapters are devoted to the topic of arrays. MATLAB’s basic data element is an
array that does not require dimensioning. This concept, which makes MATLAB a
very powerful program, can be a little difficult to grasp for students who have only
limited knowledge of and experience with linear algebra and vector analysis. The
concept of arrays is introduced gradually and then explained in extensive detail.
Chapter 2 describes how to create arrays, and Chapter 3 covers mathematical
operations with arrays.
Following the basics, more advanced topics that are related to script files
and input and output of data are presented in Chapter 4. This is followed by
coverage of two-dimensional plotting in Chapter 5. Programming with MATLAB
is introduced in Chapter 6. This includes flow control with conditional statements
and loops. User-defined functions, anonymous functions, and function functions
are covered next in Chapter 7. The coverage of function files (user-defined
functions) is intentionally separated from the subject of script files. This has
proven to be easier to understand by students who are not familiar with similar
concepts from other computer programs.
The next three chapters cover more advanced topics. Chapter 8 describes
how MATLAB can be used for carrying out calculations with polynomials, and
how to use MATLAB for curve fitting and interpolation. Chapter 9 covers
applications of MATLAB in numerical analysis. It includes solving nonlinear
equations, finding minimum or a maximum of a function, numerical integration,
and solution of first-order ordinary differential equations. Chapter 10 describes
how to produce three-dimensional plots, an extension of the chapter on two-
dimensional plots. Chapter 11 covers in great detail how to use MATLAB in
symbolic operations.
The Framework of a Typical Chapter
In every chapter the topics are introduced gradually in an order that makes the
concepts easy to understand. The use of MATLAB is demonstrated extensively
within the text and by examples. Some of the longer examples in Chapters 1–3 are
titled as tutorials. Every use of MATLAB is printed with a different font and with
a gray background. Additional explanations appear in boxed text with a white
background. The idea is that the reader will execute these demonstrations and
Introduction 3
selecting Command Window Only from the submenu that opens. Working in the
Command Window is described in detail in Section 1.2.
Window Purpose
Command Window Main window, enters variables, runs
programs.
Figure Window Contains output from graphic
commands.
Editor Window Creates and debugs script and
function files.
Help Window Provides help information.
Command History Window Logs commands entered in the
Command Window.
Workspace Window Provides information about the
variables that are used.
Current Folder Window Shows the files in the current folder.
Figure Window: The Figure Window opens automatically when graphics com-
mands are executed, and contains graphs created by these commands. An example
of a Figure Window is shown in Figure 1-2. A more detailed description of this
window is given in Chapter 5.
1.1 Starting MATLAB, MATLAB Windows 7
When MATLAB is started for the first time the screen looks like that shown in
Figure 1-1. For most beginners it is probably more convenient to close all the win-
dows except the Command Window. (Each of the windows can be closed by
clicking on the button.) The closed windows can be reopened by selecting
them from the Desktop menu. The windows shown in Figure 1-1 can be displayed
by selecting first Desktop Layout in the Desktop menu and then Default from
the submenu. The various windows in Figure 1-1 are docked to the desktop. A
window can be undocked (become a separate, independent window) by clicking
on the button on the upper right-hand corner. An independent window can be
redocked by clicking on the button.
Discovering Diverse Content Through
Random Scribd Documents
Neither Vance nor Ned dared to answer it lest it should be a trick
similar to the one they played a short time previous with such good
success, and it was necessary to wait until Roy returned.
Then the following conversation ensued, Manuel, as a matter of
course, being the spokesman at the wheel-house end of the tube:
“We are willing to admit that we are beaten, and will take to the
small boat at once if you send our friends up.”
Ned dictated the reply:
“It can’t be done. Go alone if you choose, but they stay where
they are until we reach port or are overhauled by some craft, when
you will have a chance to explain how you happen to be on deck
with everybody else holding the fort below.”
“Then we shall stay here, and it may be you’ll have a chance to
fight fire after we get ready to take to the small boat.”
This threat had the effect of frightening Roy somewhat, but Vance
cried positively:
“They won’t dare to do anything of the kind while their chums are
in the hold. Besides, I’d rather take my chances of fighting fire than
of letting them loose. What would prevent them from doing the
same thing after their friends were freed?”
“That’s so!” Ned cried. “Here’s a good trade for them! If they’ll get
into the small boat and push off where we can see them, we’ll let
the others go one at a time. They can swim to the small boat, and
thus save themselves from spending quite a while in jail.”
Roy repeated the words, and a few moments later, to the surprise
of all, Manuel cried:
“We’re in a tight place, and are willing to accept the offer. When
shall we start?”
“He’s up to some mischief now or I’m a Dutchman!” Ned
exclaimed in a low tone, and added: “Tell them to leave at once, and
to push off thirty or forty yards on the port side.”
“Do you think it’s safe?” Vance asked nervously.
“We’d better take the chances than hang ’round here two or three
days. I believe I can outwit them by working lively.”
Roy repeated the proposition, and Manuel replied:
“Then we’ll start at once, for it will take us nearly all night to pull
back to the island.”
“Now, Vance, keep your eyes open and be ready to run to the
wheel-house on the starboard side,” Ned said quickly, and he waited
at his post until the sound of footsteps on the deck told that the two
men had gone aft.
Then he hurriedly joined Vance, and the latter whispered
nervously:
“They have got at least one revolver, and probably two between
them. We should have insisted on taking the weapons, otherwise
they may fire on us while we are getting under way.”
“That’s exactly what I count on their trying to do, but I reckon
they won’t make very much by it,” Ned said as he went into the port
state-room aft. “Keep a sharp watch there until the boat pushes off,
and then get into the wheel-house as lively as you know how.”
It was evidently a portion of Manuel’s scheme to play fair until his
companions should be with him, when he probably intended to try
something else.
Ned had opened the bull’s-eye a few inches to enable him to see
what was going on, and when the men in the boat came within his
range of vision he said to Vance:
“Now is your time to get into the wheel-house. Be careful to keep
out of sight, and don’t stand erect until we are beyond range.”
“Now send over our friends!” Manuel shouted.
“You shall have them as soon as we can make the necessary
arrangements,” Ned replied as he pushed the muzzle of his weapon
through the aperture. “For fear you might take a notion to board us
again, or send a few bullets at the man at the wheel, I shall stand
right here ready to kill you whenever either of your party makes a
threatening gesture. Bring up the prisoners, Roy.”
It was some moments before this order could be obeyed, owing to
the network of ropes, but they were finally released and driven
through the cabin, Roy marching behind with the heavy starting-bar
ready to strike down the first one who attempted to show fight.
“See that they jump together,” Ned said, still keeping his eyes
fixed on the boat, where Manuel was busily engaged heaping
maledictions on the heads of the boys because his plans were not
working exactly to suit him. “Comeback here instantly they are in the
water.”
Roy gave the word for the march to be resumed, and the
prisoners rushed on deck after the companion-way door had been
forced by the aid of the bar.
A moment later a loud splash told that they had leaped together,
and as Roy came at full speed below, Ned cried:
“Start her as quick as possible. A few seconds means everything
to us just now!”
The men in the water swam directly toward the boat, and as if to
pick them up at the earliest possible moment, the sailing master
pulled toward them.
“That’s their game, to board us again, thinking we can’t start the
engine,” Ned muttered to himself. “Manuel fancies he has released
his chums, and that we are still in his power.”
Nervous as Ned was, it seemed as if the screw would never
revolve.
The men had been pulled on board the boat and the sailing
master was rowing toward the bow of the yacht with all speed,
probably intending to board from there.
“Hold on or I shall shoot!” Ned cried, and the words had hardly
been spoken before the little craft was so far ahead that he could no
longer see her.
“Hurry up there unless you are willing we shall take those fellows
aboard again!” Ned cried as he ran to the engine-room door, and
then, tearing away the barricade he had erected, rushed on to the
deck.
A bullet whistled past his head as he emerged, and on shrinking
back he understood that the machinery was in motion.
“Give it to her for all she’s worth!” he shouted excitedly, running
through the cabin to the main companion-way, and just as he was
where he could look out, the boat swept past within half a dozen
feet of the stern.
In the bow of the little craft was the darkey, who had been trying
to gain a hold of the yacht as she moved swiftly ahead.
“We’ve done it by the skin of our teeth!” he cried sufficiently loud
for Roy to hear as he ran forward once more, and shouted from the
engine-room door, “take care of yourself, Vance! They are most likely
ready to shoot.”
Three minutes later he ventured on deck, and looking far astern,
saw the pirates sitting motionless in the boat as if dazed at the very
successful manner in which their villainous scheme had been
frustrated.
It seemed incredible that the little craft could have traversed such
a distance in so short a time, but there was no disputing the fact,
and Ned set up a shout of triumph, in which he was joined both
from the wheel-house and engine-room.
Then he ran to where Vance, having just risen to his feet, was
swinging the yacht around as if to intercept a small craft which was
running to the westward.
“That explains why those fellows were so anxious to gain
possession of the craft at once that they were willing to accede to
our terms in the slight hope of getting the best of us. Unless I’m
very much mistaken that is a Key West pilot-boat, which has been
up the coast somewhere, and we had better speak her.”
Vance was not mistaken.
Half an hour later they had overhauled the craft and taken on
board a reliable pilot, who promised they should be at anchor at Key
West before midnight, and, what was better still, he kept his word to
the letter.
Between them Vance and Roy ran the engine, and it is safe to say
both felt a sense of the most intense relief when they heard the
signal to slow down, followed by a command to Ned to “clear away
the anchor.”
It yet lacked a quarter of twelve when the mighty splash told that
the Zoe was in the home port once more, and her capture nothing
more dangerous than some hideous nightmare which is quickly
forgotten.
Vance and Roy were on shore very soon after sunrise next
morning, and almost the first person they met was the former’s
father.
The party had heard at New York of the fears which were
entertained concerning the safety of the Zoe, and passage was
taken on the Key West steamer at once.
They had arrived the evening previous, and Mr. Stewart had left
the hotel thus early in order to hire a craft of some kind to make a
tour of the keys in search of some tidings of the missing ones.
Now that there is no possibility there can be any trouble regarding
the Zoe or her cargo, it is time to end the story.
There is really nothing more to say, except that Ned spent that
winter with Vance and Roy, and very many short cruises did they
take in the Zoe; but, putting them all together, there was not as
much adventure in them as had been crowded into the first voyage.
As a matter of course the treasure was taken charge of by Mr.
Stewart and Mr. Harland, and to-day, in a certain New York City
bank, there is $8,000 as Ned’s share of the treasure found on Spider
Key.
Up to the present time the boy who the good people of Jonesboro
had decided was certain to come to some bad end has never
returned to that place, nor is he likely to do so until after he has
passed an examination for Columbia College, which he, with Vance
and Ned, intends to enter next term if possible.
Where is the Zoe?
That question cannot be answered, although it is very probable
she is in the vicinity of Key West; but if any of the readers should
keep a sharp lookout during the coming summer, it is more than
likely they will see a jaunty little steam craft, bearing the same
name, which is owned by Ned, Vance, and Roy, having been
purchased with a portion of the money found in the old hulk on
Spider Key.
THE END.
TRANSCRIBER’S NOTES
1. P. 257, changed “either side the center panel” to “either
side of the center panel”.
2. Table of Contents added by transcriber.
3. Silently corrected typographical errors and variations in
spelling.
*** END OF THE PROJECT GUTENBERG EBOOK WRECKED ON
SPIDER ISLAND; OR, HOW NED ROGERS FOUND THE TREASURE
***
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.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.
• 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 comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.
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.
ebookfinal.com