Contents

Preface

Introduction

Chapter 1   Starting with MATLAB

1.1  STARTING MATLAB, MATLAB WINDOWS

1.2  WORKING IN THE COMMAND WINDOW

1.3  ARITHMETIC OPERATIONS WITH SCALARS

1.3.1  Order of Precedence

1.3.2  Using MATLAB as a Calculator

1.4  DISPLAY FORMATS

1.5  ELEMENTARY MATH BUILT-IN FUNCTIONS

1.6  DEFINING SCALAR VARIABLES

1.6.1  The Assignment Operator

1.6.2  Rules About Variable Names

1.6.3  Predefined Variables and Keywords

1.7  USEFUL COMMANDS FOR MANAGING VARIABLES

1.8  SCRIPT FILES

1.8.1  Notes About Script Files

1.8.2  Creating and Saving a Script File

1.8.3  Running (Executing) a Script File

1.8.4  Current Folder

1.9  EXAMPLES OF MATLAB APPLICATIONS

1.10  PROBLEMS

Chapter 2   Creating Arrays

2.1  CREATING A ONE-DIMENSIONAL ARRAY (VECTOR)

2.2  CREATING A TWO-DIMENSIONAL ARRAY (MATRIX)

2.2.1  The zeros, ones and, eye Commands

2.3  NOTES ABOUT VARIABLES IN MATLAB

2.4  THE TRANSPOSE OPERATOR

2.5  ARRAY ADDRESSING

2.5.1  Vector

2.5.2  Matrix

2.6  USING A COLON : IN ADDRESSING ARRAYS

2.7  ADDING ELEMENTS TO EXISTING VARIABLES

2.8  DELETING ELEMENTS

2.9  BUILT-IN FUNCTIONS FOR HANDLING ARRAYS

2.10  STRINGS AND STRINGS AS VARIABLES

2.11  PROBLEMS

Chapter 3   Mathematical Operations with Arrays

3.1  ADDITION AND SUBTRACTION

3.2  ARRAY MULTIPLICATION

3.3  ARRAY DIVISION

3.4  ELEMENT-BY-ELEMENT OPERATIONS

3.5  USING ARRAYS IN MATLAB BUILT-IN MATH FUNCTIONS

3.6  BUILT-IN FUNCTIONS FOR ANALYZING ARRAYS

3.7  GENERATION OF RANDOM NUMBERS

3.8  EXAMPLES OF MATLAB APPLICATIONS

3.9  P ...

Get MATLAB: An Introduction with Applications 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.