Irfan Turk

Practical MATLAB

With Modeling, Simulation, and Processing Projects

Irfan Turk
Nilufer, Bursa, Turkey
ISBN 978-1-4842-5280-2e-ISBN 978-1-4842-5281-9
© Irfan Turk 2019
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark.MATLAB® is a registered trademark of The MathWorks, Inc. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein.
Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail [email protected], or visit www.springeronline.com. Apress Media, LLC is a California LLC and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation.

This book is dedicated to the lovers of MATLAB.

Introduction

This book emerged as a result of programming lecture notes, experiences gathered from different computational algorithms, and reading about mathematical models of real-life problems. The purposes of this book are to introduce and teach MATLAB as a programming language and apply the programming concepts to computational models in finance, numerical methods, simulation of randomness, analyzing data with basic statistics, visualization and animation, computational biology, signal processing, image processing, and sound processing. Apart from these illustrations, the book teaches how to create applications with graphical user interfaces (GUIs).

The intended audiences of this project are people who want to learn MATLAB as a programming language, users of MATLAB who want to excel in problem solving, and advanced users of the language looking to prepare applications with GUIs.

The book has two parts. In the first part, the general concepts of the language such as variables, data types, and common built-in functions are explained. Besides these topics, fundamentals of the language such as algorithms, m files, selection structures, loops, and user-defined functions are presented. In the second part of the book, I illustrate solving problems from different areas. In the examples, the algorithmic approach is explained when necessary. Every new item, whether it is a function or a command, is explained so that the reader can understand the subjects and does not miss anything new.

This product can be used as a textbook, or as supplemental material for undergraduate or low-level one-semester graduate courses in colleges or universities. These courses might include but are not limited to computer programming with MATLAB, science and engineering problem solving with MATLAB, scientific computing, and mathematical modeling with MATLAB. The first part of the book should be taught in such courses. The chapters do not depend on each other in the second part of the book. Therefore, topics from the second part can be selected freely depending on the needs of the class. Prior to learning the content of this book, knowledge of mathematics at the precalculus level helps to understand the modeling concepts, so this is recommended as a prerequisite to taking this course. Although a background in any programming language might help to grasp the algorithms used in the examples, it is not a prerequisite. The book is also a practical resource and textbook for individual learners. It provides 152 illustrative and instructive examples including the solutions along with the codes.

Source code for this book is accessible via the Download Source Code button located at www.apress.com/9781484252802 .

Acknowledgments

I would like to mention and thank a few people who helped me in the preparation of this book. I especially thank Steve Anglin, Associate Editorial Director of Apress, who allowed me the honor of authoring this book. I also gratefully thank Mark Powers, Editorial Operations Manager of Apress, who helped me and guided me in bringing this product to life. I also thank Matthew Moodie, Lead Development Editor at Apress, for being a part of this team, and Karpur Shukla, the reviewer of this project. I would like to thank my primary PhD supervisor, Associate Professor Dr. Maksat Ashyraliyev from the Software Engineering Department of Bahcesehir University, for his priceless contributions to my skills. Finally, thanks go to my friend and colleague Ibrahim Emre Celikkale for his recommendations.

Table of Contents

Index 293

About the Author and About the Technical Reviewer

About the Author

Irfan TurkPhD
../images/483991_1_En_BookFrontmatter_Figb_HTML.jpg

is a math and computer programming instructor and has been working in universities, high schools, and educational institutions for nearly 15 years. He concentrated on applied mathematics for his PhD. Dr. Turk finished the computer science track requirements of his master’s degree when he was a student at the University of Texas at Arlington. He is the author of Python Programming: For Engineers and Scientists and MATLAB Programming: For Beginners and Professionals . Dr. Turk’s research interests include but are not limited to numerical solutions of differential equations, scientific computing, mathematical modeling, and programming in MATLAB and Python.

 

About the Technical Reviewer

Karpur Shukla
../images/483991_1_En_BookFrontmatter_Figc_HTML.jpg

is a research fellow at the Centre for Mathematical Modeling at FLAME University in Pune, India. His current research interests focus on topological quantum computation, nonequilibrium and finite-temperature aspects of topological quantum field theories, and applications of quantum materials effects for reversible computing. He received an MSc in physics from Carnegie Mellon University, with a background in theoretical analysis of materials for spintronics applications as well as Monte Carlo simulations for the renormalization group of finite-temperature spin lattice systems.

 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.107.94