MATLAB For Dummies, 2nd Edition
Published by: John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030-5774, www.wiley.com
Copyright 2021 by John Wiley & Sons, Inc., Hoboken, New Jersey
Published simultaneously in Canada
No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without the prior written permission of the Publisher. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions
.
Trademarks: Wiley, For Dummies, the Dummies Man logo, Dummies.com, Making Everything Easier, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and may not be used without written permission. MATLAB is a registered trademark of The MathWorks, Inc. All other trademarks are the property of their respective owners. John Wiley & Sons, Inc. is not associated with any product or vendor mentioned in this book.
LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: THE PUBLISHER AND THE AUTHOR MAKE NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS WORK AND SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE. NO WARRANTY MAY BE CREATED OR EXTENDED BY SALES OR PROMOTIONAL MATERIALS. THE ADVICE AND STRATEGIES CONTAINED HEREIN MAY NOT BE SUITABLE FOR EVERY SITUATION. THIS WORK IS SOLD WITH THE UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN RENDERING LEGAL, ACCOUNTING, OR OTHER PROFESSIONAL SERVICES. IF PROFESSIONAL ASSISTANCE IS REQUIRED, THE SERVICES OF A COMPETENT PROFESSIONAL PERSON SHOULD BE SOUGHT. NEITHER THE PUBLISHER NOR THE AUTHOR SHALL BE LIABLE FOR DAMAGES ARISING HEREFROM. THE FACT THAT AN ORGANIZATION OR WEBSITE IS REFERRED TO IN THIS WORK AS A CITATION AND/OR A POTENTIAL SOURCE OF FURTHER INFORMATION DOES NOT MEAN THAT THE AUTHOR OR THE PUBLISHER ENDORSES THE INFORMATION THE ORGANIZATION OR WEBSITE MAY PROVIDE OR RECOMMENDATIONS IT MAY MAKE. FURTHER, READERS SHOULD BE AWARE THAT INTERNET WEBSITES LISTED IN THIS WORK MAY HAVE CHANGED OR DISAPPEARED BETWEEN WHEN THIS WORK WAS WRITTEN AND WHEN IT IS READ.
For general information on our other products and services, please contact our Customer Care Department within the U.S. at 877-762-2974, outside the U.S. at 317-572-3993, or fax 317-572-4002. For technical support, please visit https://hub.wiley.com/community/support/dummies
.
Wiley publishes in a variety of print and electronic formats and by print-on-demand. Some material included with standard print versions of this book may not be included in e-books or in print-on-demand. If this book refers to media such as a CD or DVD that is not included in the version you purchased, you may download this material at http://booksupport.wiley.com
. For more information about Wiley products, visit www.wiley.com
.
Library of Congress Control Number: 2021938618
ISBN: 978-1-119-79688-6
ISBN 978-1-119-79689-3 (ebk); ISBN 978-1-119-79690-9 (ebk)
MATLAB For Dummies
To view this book's Cheat Sheet, simply go to www.dummies.com and search for MATLAB For Dummies Cheat Sheet in the Search box.
Table of Contents
List of Tables
- Chapter 3
- Chapter 5
- Chapter 6
- Chapter 7
- Chapter 12
- Chapter 14
- Chapter 17
- Chapter 19
- Appendix A
- Appendix B
List of Illustrations
- Chapter 1
- Chapter 2
- Chapter 3
- Chapter 4
- Chapter 5
- Chapter 6
- Chapter 7
- Chapter 8
- Chapter 9
- Chapter 11
- Chapter 12
- Chapter 13
- Chapter 14
- Chapter 15
- Chapter 16
- Chapter 17
- Chapter 18
- Chapter 19
- Chapter 20
Guide
Pages
Introduction
MATLAB is an amazing product that helps you perform math-related tasks of all sorts using the same techniques that youd use if you were performing the task manually (using pencil and paper, slide rule, or abacus if necessary, but more commonly using a calculator). However, MATLAB makes it possible to perform these tasks at a speed that only a computer can provide. In addition, using MATLAB reduces errors, streamlines many tasks, and makes you more efficient.
More important, MATLAB makes sharing your efforts with others incredibly easy. You can use Live Scripts to create report-like output that management can understand, or to develop apps for coworkers to employ when performing their tasks.
MATLAB is also a big product with numerous tools and features that you might never have used in the past. For example, instead of simply working with numbers, you have the ability to plot them in a variety of ways that help you communicate the significance of your data to other people. To get the most from MATLAB, you really need a book like MATLAB For Dummies, 2nd Edition.
About This Book
The main purpose of MATLAB For Dummies, 2nd Edition is to reduce the learning curve that comes with using a product that offers as much as MATLAB does. When you first start MATLAB, you might become instantly overwhelmed by everything you see. This book helps you get past that stage and become productive quickly so that you can get back to performing amazing feats of math wizardry.
In addition, this book introduces you to techniques that you might not know about or even consider because you havent been exposed to them before. For example, MATLAB provides a rich plotting environment that helps you not only communicate better but also present numeric information in a manner that helps others see your perspective.
Using scripts and functions will also reduce the amount of work you have to do. This book shows you how to create custom code, which you can use to customize the environment to meet your specific needs. This edition introduces you to Live Scripts and Live Functions, which enable you to combine code and output into a single report-like version that everyone can use, even if they dont necessarily understand the math. Using classes helps you package your code to make it easier to reuse and understand. If you want to create a form of your code that is accessible to coworkers and people who may not want to know why something works, just that it does, you can also discover apps and toolboxes.
After youve successfully installed MATLAB on whatever computer platform youre using, you start with the basics and work your way up. By the time you finish working through the examples in this book, youll be able to perform a range of simple tasks in MATLAB that includes writing scripts, writing functions, creating plots, and performing advanced equation solving. No, you wont be an expert, but you will be able to use MATLAB to meet specific needs in the job environment.
To make absorbing the concepts even easier, this book uses the following conventions:
- Text that youre meant to type just as it appears in the book is bold. The exception is when youre working through a step list: Because each step is bold, the text to type is not bold.
Next page