6 Complex Numbers
Total Page:16
File Type:pdf, Size:1020Kb
PRACTICAL MATLAB® BASICS FOR ENGINEERS CRC_47744_FM.indd i 7/10/2008 1:17:55 PM Handbook of Practical MATLAB® for Engineers Practical MATLAB® Basics for Engineers Practical MATLAB® Applications for Engineers CRC_47744_FM.indd ii 7/10/2008 1:17:56 PM PRACTICAL MATLAB® FOR ENGINEERS PRACTICAL MATLAB® BASICS FOR ENGINEERS Misza Kalechman Professor of Electrical and Telecommunication Engineering Technology New York City College of Technology City University of New York (CUNY) CRC_47744_FM.indd iii 7/10/2008 1:17:56 PM MATLAB® is a trademark of The MathWorks, Inc. and is used with permission. The MathWorks does not warrant the accuracy of the text or exercises in this book. This book’s use or discussion of MATLAB® software or related products does not constitute endorsement or sponsorship by The MathWorks of a particular pedagogical approach or particular use of the MATLAB® software. This book was previously published by Pearson Education, Inc. CRC Press Taylor & Francis Group 6000 Broken Sound Parkway NW, Suite 300 Boca Raton, FL 33487-2742 © 2009 by Taylor & Francis Group, LLC CRC Press is an imprint of Taylor & Francis Group, an Informa business No claim to original U.S. Government works Printed in the United States of America on acid-free paper 10 9 8 7 6 5 4 3 2 1 International Standard Book Number-13: 978-1-4200-4774-5 (Softcover) This book contains information obtained from authentic and highly regarded sources. Reasonable efforts have been made to publish reliable data and information, but the author and publisher cannot assume responsibility for the valid- ity of all materials or the consequences of their use. The authors and publishers have attempted to trace the copyright holders of all material reproduced in this publication and apologize to copyright holders if permission to publish in this form has not been obtained. If any copyright material has not been acknowledged please write and let us know so we may rectify in any future reprint. Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced, transmitted, or uti- lized in any form by any electronic, mechanical, or other means, now known or hereafter invented, including photocopy- ing, microfilming, and recording, or in any information storage or retrieval system, without written permission from the publishers. For permission to photocopy or use material electronically from this work, please access www.copyright.com (http:// www.copyright.com/) or contact the Copyright Clearance Center, Inc. (CCC), 222 Rosewood Drive, Danvers, MA 01923, 978-750-8400. CCC is a not-for-profit organization that provides licenses and registration for a variety of users. For orga- nizations that have been granted a photocopy license by the CCC, a separate system of payment has been arranged. Trademark Notice: Product or corporate names may be trademarks or registered trademarks, and are used only for identification and explanation without intent to infringe. Library of Congress Cataloging-in-Publication Data Kalechman, Misza. Practical MATLAB basics for engineers / Misza Kalechman. p. cm. Includes bibliographical references and index. ISBN 978-1-4200-4774-5 (alk. paper) 1. Electric engineering--Mathematics. 2. MATLAB. I. Title. TK153.K18 2007 620.001’51--dc22 2008000268 Visit the Taylor & Francis Web site at http://www.taylorandfrancis.com and the CRC Press Web site at http://www.crcpress.com CRC_47744_FM.indd iv 7/10/2008 1:17:57 PM Contents Preface .............................................................................................................................. vii Author ............................................................................................................................... ix 1 Trends, the Industry, and MATLAB® ....................................................................1 1.1 Introduction .................................................................................................................1 1.2 The Job Market ............................................................................................................4 1.3 Market and Labor Trends ..........................................................................................4 1.4 Technical Know-How: Trends and Facts .................................................................7 1.5 What Constitutes Essential Knowledge...................................................................9 1.6 Technological Trends ................................................................................................11 1.7 Objective of This Book ............................................................................................. 14 1.8 Organization .............................................................................................................. 14 1.9 What Is a Computer? What Constitutes Hardware? What Constitutes Software? ....................................................................................17 1.10 What Is MATLAB®? ..................................................................................................22 1.11 Conventions Used in This Book ..............................................................................23 1.12 MATLAB® Windows ................................................................................................23 1.13 A Word about Restrictions on the User’s Software ..............................................26 1.14 Help .............................................................................................................................26 1.15 The Problem ...............................................................................................................30 1.16 Problem-Solving Techniques (Heuristics) .............................................................34 1.17 Proofs and Simulations ............................................................................................35 1.18 Computer Solutions ..................................................................................................36 1.19 The Flowchart ............................................................................................................37 2 Getting Started .......................................................................................................41 2.1 Introduction ...............................................................................................................41 2.2 Objectives ...................................................................................................................42 2.3 Background ................................................................................................................42 2.4 Examples ....................................................................................................................52 2.5 Further Analysis........................................................................................................57 2.6 Application Problems ...............................................................................................59 3 Matrices, Arrays, Vectors, and Sets ......................................................................67 3.1 Introduction ...............................................................................................................67 3.2 Objectives ...................................................................................................................68 3.3 Background ................................................................................................................69 3.4 Examples .................................................................................................................. 151 3.5 Further Analysis...................................................................................................... 175 3.6 Application Problems .............................................................................................178 4 Trigonometric, Exponential, Logarithmic, and Special Functions ................ 191 4.1 Introduction .............................................................................................................191 4.2 Objectives .................................................................................................................195 v CRC_47744_FM.indd v 7/10/2008 1:17:57 PM vi Contents 4.3 Background ..............................................................................................................196 4.4 Examples .................................................................................................................. 215 4.5 Further Analysis......................................................................................................229 4.6 Application Problems .............................................................................................232 5 Printing and Plotting ...........................................................................................237 5.1 Introduction .............................................................................................................237 5.2 Objectives .................................................................................................................238 5.3 Background ..............................................................................................................239 5.4 Examples ..................................................................................................................304 5.5 Further Analysis......................................................................................................339