Matlab

A Practical Introduction to Programming and Problem Solving

By

  • Stormy Attaway, Ph.D., Boston University, Assistant Professor, Department of Mechanical Engineering, Boston University, and Director of Curricular Assessment and Improvement for the College of Engineering.

MATLAB: A Practical Introduction to Programming and Problem Solving aims to provide readers with the knowledge of the fundamentals of programming concepts and the skills and techniques needed for basic problem solving using MATLAB as the vehicle. MATLAB is software that functions to complete a wide range of tasks, from mathematical procedures to three-dimensional imaging. The software also has a complete programming structure that allows programmers to use their own specifications in customizing programs. The text has the following key features: Systematic approach Side-by-side programming concepts and built-in functions File input/output User-defined functions Advanced programming concepts Problem-solving tools Plots, imaging and graphical user interfaces Vectorized code The book is composed of 15 chapters, which discuss MATLAB and its programs, selection and loop statements, string manipulation, data structures, advanced functions, advanced plotting procedures, matrix representation of linear algebraic equations, basic statistics and indexing, and advanced mathematics. This source will be invaluable for engineers, engineering novices, and students learning to program and model in MATLAB.
View full description

Audience

Engineers learning to program and model in Matlab. Undergraduates in engineering and science taking a course that uses (or recommends) MATLAB.

 

Book information

  • Published: July 2011
  • Imprint: BUTTERWORTH HEINEMANN
  • ISBN: 978-0-12-385081-2

Reviews

"This book is an excellent way to learn quickly how to use MATLAB…The most significant changes in this edition include a new chapter on vectorized code and manipulating vectors, concepts used in image processing, modified and new end-of-chapter exercises, and the use of MATLAB version R2011a."--Electrical Insulation Magazine, January 2013, Vol. 29, No. 1, page 66
"This book is an excellent way to learn quickly how to use MATLAB…Anyone who wants to learn the basis of MATLAB quickly should own this book."--IEEE Electrical Insulation Magazine, page 66
"In-depth coverage is given to input/output, a topic that is fundamental to many engineering applications. New to this edition are more engineering applications to help the reader learn MATLAB in the context of solving technical problems, new and revised end-of-chapter problems, stronger coverage of loops and vectorizing in a new chapter and updates to reflect current features and functions of the current release of MATLAB."--Lunar and Planetary Information
"Assuming no knowledge of programming, this book presents both programming concepts and MATLAB’s built-n functions, providing a perfect platform for exploiting its extensive capabilities for tackling engineering problems. The book starts with programming concepts such as variables, assignments, input/output, and selection statements, moves onto loops, and then solves problems using both the ‘programming concepts’ and the ‘power of MATLAB’ side by side. In-depth coverage is given to input/output, a topic that is fundamental to many engineering applications. New to this edition are more engineering applications to help the reader learn MATLAB in the context of solving technical problems, new and revised end-of-chapter problems, stronger coverage of loops and vectorizing in a new chapter, and updates to reflect current features and functions of the current release of MATLAB."--
Lunar and Planetary Information Bulletin, December 2011, Issue 127, page 46
"This is the perfect book for anyone wanted to acquire a secure understanding of MATLAB fundaments and master its language.  Many engineers and scientists now use MATLAB and Simulink to solve real-world problems.  With the help of this book, they will be able to exploit the full power of MATLAB much sooner than they would using the online manuals, and be able to solve real problems much more quickly."--IEEE Electrical Insulation Magazine, page 70




Table of Contents


Preface

Acknowledgments

Part 1 Introduction to Programming Using MATLAB

    Chapter 1 Introduction to MATLAB

         1.1 Getting into MATLAB

         1.2 The MATLAB Desktop Environment

         1.3 Variables and Assignment Statements

         1.4 Expressions

         1.5 Characters and Encoding

         1.6 Vectors and Matrices

    Chapter 2 Introduction to MATLAB Programming

         2.1 Algorithms

         2.2 MATLAB Scripts

         2.3 Input and Output

         2.4 Scripts with Input and Output

         2.5 Scripts to Produce and Customize Simple Plots

         2.6 Introduction to File Input/Output (Load and Save)

         2.7 User-Defined Functions That Return a Single Value

    Chapter 3 Selection Statements

         3.1 Relational Expressions

         3.2 The If Statement

         3.3 The If-Else Statement

         3.4 Nested If-Else Statements

         3.5 The Switch Statement

         3.6 The Menu Function

         3.7 The “Is” Functions in MATLAB

    Chapter 4 Loop Statements

         4.1 The For Loop

         4.2 Nested For Loops

         4.3 While Loops

    Chapter 5 Vectorized Code

         5.1 Loops with Vectors and Matrices

         5.2 Operations on Vectors and Matrices

         5.3 Vectors and Matrices as Function Arguments

         5.4 Logical Vectors

         5.5 Vectorizing Code

         5.6 Timing

    Chapter 6 MATLAB Programs

         6.1 More Types of User-Defined Functions

         6.2 MATLAB Program Organization

         6.3 Application: Menu-Driven Modular Program

         6.4 Variable Scope

         6.5 Debugging Techniques

    Chapter 7 String Manipulation

         7.1 Creating String Variables

         7.2 Operations on Strings

         7.3 The “Is” Functions for Strings

         7.4 Converting Between String and Number Types

    Chapter 8 Data Structures: Cell Arrays and Structures

         8.1 Cell Arrays

         8.2 Structures

    Chapter 9 Advanced File Input and Output

         9.1 Lower-Level File I/O Functions

         9.2 Writing and Reading Spreadsheet Files

         9.3 Using MAT-Files for Variables

    Chapter 10 Advanced Functions

         10.1 Anonymous Functions

         10.2 Uses of Function Handles     

         10.3 Variable Numbers of Arguments

         10.4 Nested Functions

         10.5 Recursive Functions

Part 2 Advanced Topics for Problem Solving with MATLAB

    Chapter 11 Advanced Plotting Techniques

         11.1 Plot Functions

         11.2 Animation

         11.3 Three-Dimensional Plots

         11.4 Customizing Plots

         11.5 Handle Graphics and Plot Properties

         11.6 Plot Applications

    Chapter 12 Matrix Representation of Linear Algebraic Equations

         12.1 Matrix Definitions

         12.2 Matrix Solutions to Systems of Linear Algebraic Equations

    Chapter 13 Basic Statistics, Sets, Sorting, and Indexing

         13.1 Statistical Functions

         13.2 Set Operations

         13.3 Sorting

         13.4 Index Vectors

         13.5 Searching

    Chapter 14 Sights and Sounds

         14.1 Sound Files

         14.2 Image Processing

         14.3 Introduction to Graphical User Interfaces

    Chapter 15 Advanced Mathematics

         15.1 Fitting Curves to Data

         15.2 Complex Numbers

         15.3 Symbolic Mathematics

         15.4 Calculus: Integration and Differentiation

Index