Introduction to Matlab and Simulink - O.Beucher, Studia, Matlab
[ Pobierz całość w formacie PDF ]
I
NTRODUCTION TO
MATLAB
®
& SIMULINK
A Project Approach
Third Edition
LICENSE, DISCLAIMER OF LIABILITY, AND LIMITED WARRANTY
The CD-ROM that accompanies this book may only be used on a single PC. This
license does not permit its use on the Internet or on a network (of any kind). By
purchasing or using this book/CD-ROM package(the “Work”), you agree that this
license grants permission to use the products contained herein, but does not give you
the right of ownership to any of the textual content in the book or ownership to any of
the information or products contained on the CD-ROM. Use of third party software
contained herein is limited to and subject to licensing terms for the respective
products, and permission must be obtained from the publisher or the owner of the
software in order to reproduce or network any portion of the textual material or
software (in any media) that is contained in the Work.
INFINITY SCIENCE PRESS LLC (“ISP” or “the Publisher”) and anyone involved in
the creation, writing or production of the accompanying algorithms, code, or
computer programs (“the software”) or any of the third party software contained on
the CD-ROM or any of the textual material in the book, cannot and do not warrant the
performance or results that might be obtained by using the software or contents of the
book. The authors, developers, and the publisher have used their best efforts to insure
the accuracy and functionality of the textual material and programs contained in this
package; we, however, make no warranty of any kind, express or implied, regarding
the performance of these contents or programs. The Work is sold “as is” without
warranty (except for defective materials used in manufacturing the disc or due to
faulty workmanship);
The authors, developers, and the publisher of any third party software, and anyone
involved in the composition, production, and manufacturing of this work will not be
liable for damages of any kind arising out of the use of (or the inability to use) the
algorithms, source code, computer programs, or textual material contained in this
publication. This includes, but is not limited to, loss of revenue or profit, or other
incidental, physical, or consequential damages arising out of the use of this Work.
The sole remedy in the event of a claim of any kind is expressly limited to replacement
of the book and/or the CD-ROM, and only at the discretion of the Publisher.
The use of “implied warranty” and certain “exclusions” vary from state to state, and
might not apply to the purchaser of this product.
I
NTRODUCTION TO
MATLAB
®
& SIMULINK
A Project Approach
Third Edition
O. BEUCHER
and
M. WEEKS
Infinity Science Press LLC
Hingham, Massachusetts
New Delhi
Revision & Reprint Copyright 2008 by
Infinity Science Press
LLC
All rights reserved.
Copyright © 2006 by Pearson Education Deutschland GmbH. All rights reserved.
First published in the German language under the title “MATLAB und Simulink” by
Pearson Studium, an imprint of Pearson Education Deutschland GmbH, München.
This publication, portions of it, or any accompanying software may not be reproduced in any way, stored in a retrieval
system of any type, or transmitted by any means or media, electronic or mechanical, including, but not limited to,
photocopy, recording, Internet postings or scanning, without prior permission in writing from the publisher.
Infinity Science Press LLC
11 Leavitt Street
Hingham, MA 02043
Tel. 877-266-5796 (toll free)
Fax 781-740-1677
info@infinitysciencepress.com
www.infinitysciencepress.com
This book is printed on acid-free paper.
O. Beucher and M. Weeks.
Introduction to MATLAB & Simulink: A Project Approach, Third Edition
.
ISBN: 978-1-934015-04-9
The publisher recognizes and respects all marks used by companies, manufacturers, and developers as a means to
distinguish their products. All brand names and product names mentioned in this book are trademarks or service marks
of their respective companies. Any omission or misuse (of any kind) of service marks or trademarks, etc. is not an
attempt to infringe on the property of others.
Library of Congress Cataloging-in-Publication Data
Beucher, Ottmar. Introduction to MATLAB & SIMULINK : a project approach / Ottmar Beucher and Michael Weeks.
— 3rd ed.
p. cm.
Includes bibliographical references and index.
ISBN 978-1-934015-04-9 (hardcover with cd-rom : alk. paper)
1. Engineering mathematics–Data processing. 2. Computer simulation–Computer programs.
3. MATLAB. 4. SIMULINK. I. Weeks, Michael. II. Title.
TA345.B4822 2007
620.001’51–dc22
2007010556
Printed in the United States of America
7894321
Our titles are available for adoption, license or bulk purchase by institutions, corporations, etc. For additional
information, please contact the Customer Service Dept. at 877-266-5796 (toll free).
Requests for replacement of a defective CD-ROM must be accompanied by the original disc, your mailing address,
telephone number, date of purchase and purchase price. Please state the nature of the problem, and send the information
to Infinity Science Press, 11 Leavitt Street, Hingham, MA 02043.
to the purchaser is to replace the disc, based on defective materials or
faulty workmanship, but not based on the operation or functionality of the product.
Infinity Science Press
The sole obligation of
C
ONTENTS
Preface
xv
Chapter 1. Introduction to MATLAB
1
1.1 What is MATLAB?
1
1.2 Elementary MATLAB Constructs
3
1.2.1 MATLAB Variables
4
1.2.2 Arithmetic Operations
13
1.2.3 Logical and Relational Operations
21
1.2.4 Mathematical Functions
26
1.2.5 Graphical Functions
33
1.2.6 I/O Operations
50
1.2.7 Import Wizard
52
1.2.8 Special I/O Functions
52
1.2.9 The MATLAB Search Path
54
1.2.10 Elementary Matrix Manipulations
56
1.3.1 Structures
64
1.3.2 Cell Arrays
72
1.3.3 Definition of Cell Arrays
73
1.3.4 Access to Cell Array Elements
77
1.4 The MATLAB Desktop
82
1.5 MATLAB Help
86
1.6 MATLAB Programming
88
1.6.1 MATLAB Procedures
88
1.6.2 MATLAB Functions
90
1.6.3 MATLAB Language Constructs
95
1.6.4 The Function eval
107
1.6.5 Function Handles
109
1.6.6 Solution of Differential Equations
113
v
1.3 More Complicated Data Structures
64
[ Pobierz całość w formacie PDF ]