ebook img

MATLAB for Engineers PDF

671 Pages·13.962 MB·English
by  MooreHolly
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview MATLAB for Engineers

GLoBAL GLoBAL EdiTion EdiTion EG dL iTo ioBA nL MATLAB® M for these Global Editions, the editorial team at Pearson has A for Engineers T collaborated with educators across the world to address L a wide range of subjects and requirements, equipping A students with the best possible learning tools. This Global B ® fourTh EdiTion Edition preserves the cutting-edge approach and pedagogy f o of the original, but also features alterations, customization, r holly Moore and adaptation from the north American version. E n g i n e e r s Ef do iTu ir oT nh M o o r e This is a special edition of an established title widely used by colleges and universities throughout the world. Pearson published this exclusive edition for the benefit ISBN-13: 978-1-292-06053-8 of students outside the united States and Canada. if you ISBN-10: 1-292-06053-0 9 0 0 0 0 purchased this book within the united States or Canada you should be aware that it has been imported without the approval of the Publisher or Author. Pearson Global Edition 9 781292 060538 ® MATLAB for Engineers A01_MOOR0538_04_SE_FM.INDD 1 3/1/14 12:37 AM This page is intentionally left blank. A01_MOOR0538_04_SE_FM.INDD 2 3/1/14 12:37 AM ® MATLAB for Engineers Fourth Edition Global Edition Holly Moore Salt Lake Community College Salt Lake City, Utah Global Edition contributions by SoMitra KuMar SanadHya Indraprastha Institute of Information Technology, Delhi Boston • Columbus • Indianapolis • New York  San Francisco • Upper Saddle River • Amsterdam  Cape Town • Dubai • London • Madrid • Milan  Munich • Paris • Montreal • Toronto • Delhi  Mexico City • São Paulo • Sydney • Hong Kong  Seoul • Singapore • Taipei • Tokyo A01_MOOR0538_04_SE_FM.INDD 3 3/1/14 12:37 AM VP/Editorial Director, Engineering/Computer Science: Marcia J. Acquisitions Editor, Global Edition: Aditee Agarwal Horton Project Editor, Global Edition: Sinjita Basu Executive Editor: Holly Stark Senior Manufacturing Controller, Production, Global Edition: Editorial Assistant: Carlin Heinle Trudy Kimber Senior Marketing Manager: Tim Galligan Cover Designer: Bruce Kenselaar Senior Managing Editor: Scott Disanno Cover Image: Shutterstock Project Manager: Priyadharshini Dhanagopal Full-Service Project Management: Pavithra Jayapaul, Jouve Head of Learning Asset Acquisition, Global Edition: Laura Dent Cover Printer: Courier Kendallville Publishing Administrator and Business Analyst, Global Edition: Shokhi Shah Khandelwal Pearson Education Limited Edinburgh Gate Harlow Essex CM20 2JE England and Associated Companies throughout the world Visit us on the World Wide Web at: www.pearsonglobaleditions.com © Pearson Education Limited 2015 The rights of Holly Moore to be identified as the author of this work have been asserted by her in accordance with the Copyright, Designs and Patents Act 1988. Authorized adaptation from the United States edition, entitled MATLAB® for Engineers, 4th edition, ISBN 978-0-133-48597-4, by Holly Moore, published by Pearson Education © 2015. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmittedin any form or by any means, electronic, mechanical, photocopying, recording or otherwise, withouteither the prior written permission of the publisher or a license permitting restricted copying in the United Kingdom issued by the Copyright Licensing Agency Ltd, Saffron House, 6–10 Kirby Street, London EC1N 8TS. All trademarks used herein are the property of their respective owners.The use of any trademark in this text does not vest in the author or publisher any trademark ownership rights in such trademarks, nor does the use of such trademarks imply any affiliation with or endorse- ment of this book by such owners. British Library Cataloguing-in-Publication Data A catalogue record for this book is available from the British Library 10 9 8 7 6 5 4 3 2 1 14 13 12 11 10 Typeset in New Baskerville Std Roman by Pavithra Jayapaul, Jouve Printed and bound by Courier Kendallville in The United States of America ISBN 10: 1-292-06053-0 http://www.pearsonglobaleditions.com ISBN 13: 978-129-206053-8 (Print) ISBN 13: 978-129-206074-3 (PDF) A01_MOOR0538_04_SE_FM.INDD 4 3/1/14 12:37 AM Contents About this book 11 DeDicAtion AnD AcknowleDgments 15 1 • About MAtlAb® 17 1.1 What Is MATLAB®? 17 1.2 Student Edition of MATLAB® 18 1.3 How Is MATLAB® Used in Industry? 19 1.4 Problem Solving in Engineering and Science 21 2 • MAtlAb® environment 25 2.1 Getting Started 25 2.2 MATLAB® Windows 27 2.3 Solving Problems with MATLAB® 33 2.4 Saving Your Work 58 Summary 68 MATLAB® Summary 69 Key Terms 71 Problems 71 3 • built-in MAtlAb® Functions 79 Introduction 79 3.1 Using Built-In Functions 79 3.2 Using the Help Feature 81 3.3 Elementary Math Functions 84 3.4 Trigonometric Functions 92 3.5 Data Analysis Functions 96 3.6 Random Numbers 116 3.7 Complex Numbers 120 3.8 Computational Limitations 124 3.9 Special Values and Miscellaneous Functions 125 Summary 127 5 A01_MOOR0538_04_SE_FM.INDD 5 3/1/14 12:37 AM 6 Contents MATLAB® Summary 128 Key Terms 129 Problems 130 4 •  MAnipulAting MAtlAb® mAtrices 137 4.1 Manipulating Matrices 137 4.2 Problems with Two Variables 144 4.3 Special Matrices 151 Summary 157 MATLAB® Summary 158 Key Terms 158 Problems 158 5 • plotting    165 Introduction 165 5.1 Two-Dimensional Plots 165 5.2 Subplots 182 5.3 Other Types of Two-Dimensional Plots 184 5.4 Three-Dimensional Plotting 201 5.5 Editing Plots from the Menu Bar 207 5.6 Creating Plots from the Workspace Window 209 5.7 Saving Your Plots 210 Summary 211 MATLAB® Summary 211 Problems 213 6 • user-DefineD functions    223 Introduction 223 6.1 Creating Function M-Files 223 6.2 Creating Your Own Toolbox of Functions 242 6.3 Anonymous Functions and Function Handles 244 6.4 Function Functions 245 6.5 Subfunctions 246 Summary 249 MATLAB® Summary 250 Key Terms 251 Problems 251 7 • user-controlleD input AnD output    258 Introduction 258 7.1 User-Defined Input 258 7.2 Output Options 262 7.3 Graphical Input 272 7.4 More Cell Mode Features 273 A01_MOOR0538_04_SE_FM.INDD 6 3/1/14 12:37 AM Contents 7 7.5 Reading and Writing Data from Files 275 7.6 Debugging Your Code 277 Summary 281 MATLAB® Summary 282 Key Terms 283 Problems 283 8 • logicAl functions AnD selection structures    287 Introduction 287 8.1 Relational and Logical Operators 288 8.2 Flowcharts and Pseudocode 290 8.3 Logical Functions 292 8.4 Selection Structures 298 8.5 Debugging 314 Summary 315 MATLAB® Summary 316 Key Terms 316 Problems 316 9 • repetition structures    327 Introduction 327 9.1 For Loops 328 9.2 While Loops 336 9.3 Break and Continue 344 9.4 Midpoint Break Loops 345 9.5 Nested Loops 349 9.6 Improving the Efficiency of Loops 350 Summary 353 MATLAB® Summary 354 Key Terms 354 Problems 354 10 • MAtrix AlgebrA    359 Introduction 359 10.1 Matrix Operations and Functions 359 10.2 Solutions of Systems of Linear Equations 379 10.3 Special Matrices 393 Summary 396 MATLAB® Summary 398 Key Terms 398 Problems 398 11 • other KinDs of ArrAys    406 Introduction 406 11.1 Data Types 407 11.2 Multidimensional Arrays 416 A01_MOOR0538_04_SE_FM.INDD 7 3/1/14 12:37 AM 8 Contents 11.3 Character Arrays 418 11.4 Cell Arrays 423 11.5 Structure Arrays 424 Summary 432 MATLAB® Summary 433 Key Terms 433 Problems 433 12 • syMbolic MAtheMAtics    439 Introduction 439 12.1 Symbolic Algebra 440 12.2 Solving Expressions and Equations 448 12.3 Symbolic Plotting 461 12.4 Calculus 469 12.5 Differential Equations 483 12.6 Converting Symbolic Expressions to Anonymous Functions 486 Summary 487 MATLAB® Summary 489 Problems 490 13 • nuMericAl techniques    499 13.1 Interpolation 499 13.2 Curve Fitting 509 13.3 Using the Interactive Fitting Tools 522 13.4 Differences and Numerical Differentiation 525 13.5 Numerical Integration 534 13.6 Solving Differential Equations Numerically 540 Summary 547 MATLAB® Summary 549 Key Terms 550 Problems 550 14 • ADvAnceD grAphics    559 Introduction 559 14.1 Images 559 14.2 Handle Graphics 575 14.3 Animation 579 14.4 Other Visualization Techniques 585 14.5 Introduction to Volume Visualization 587 Summary 590 MATLAB® Summary 591 Key Terms 592 Problems 593 A01_MOOR0538_04_SE_FM.INDD 8 3/1/14 12:37 AM Contents 9 15 • creAting grAphicAl user interfAces    595 Introduction 595 15.1 A Simple GUI with One User Interaction 596 15.2 A Graphical User Interface with Multiple User Interactions—Ready_Aim_Fire 604 15.3 An Improved Ready_Aim_Fire Program 607 15.4 A Much Better Ready_Aim_Fire Program 608 15.5 Built-In GUI Templates 612 Summary 616 Key Terms 616 Problems 616 16 • siMulinK®—A brief introDuction    618 Introduction 618 16.1 Applications 618 16.2 Getting Started 619 16.3 Solving Differential Equations with Simulink® 627 Summary 632 Key Terms 633 Problems 633 AppenDix A •  speciAl chArActers, coMMAnDs,  AnD functions  637 AppenDix b • scAling techniques  652 AppenDix c • the reADy_AiM_fire gui  655 AppenDix D  660 inDex  661 A01_MOOR0538_04_SE_FM.INDD 9 3/1/14 12:37 AM

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.