You are previewing MATLAB: An Introduction with Applications 5th Edition.
O'Reilly logo
MATLAB: An Introduction with Applications 5th Edition

Book Description

More college students use Amos Gilat's MATLAB: An Introduction with Applications than any other MATLAB textbook. This concise book is known for its just-in-time learning approach that gives students information when they need it. The new edition gradually presents the latest MATLAB functionality in detail. Equally effective as a freshmen-level text, self-study tool, or course reference, the book is generously illustrated through computer screen shots and step-by-step tutorials, with abundant and motivating applications to problems in mathematics, science, and engineering.

Table of Contents

  1. Coverpage
  2. Titlepage
  3. Copyright
  4. Contents
  5. Preface
  6. Introduction
  7. Chapter 1 Starting with MATLAB
    1. 1.1 STARTING MATLAB, MATLAB WINDOWS
    2. 1.2 WORKING IN THE COMMAND WINDOW
    3. 1.3 ARITHMETIC OPERATIONS WITH SCALARS
      1. 1.3.1 Order of Precedence
      2. 1.3.2 Using MATLAB as a Calculator
    4. 1.4 DISPLAY FORMATS
    5. 1.5 ELEMENTARY MATH BUILT-IN FUNCTIONS
    6. 1.6 DEFINING SCALAR VARIABLES
      1. 1.6.1 The Assignment Operator
      2. 1.6.2 Rules About Variable Names
      3. 1.6.3 Predefined Variables and Keywords
    7. 1.7 USEFUL COMMANDS FOR MANAGING VARIABLES
    8. 1.8 SCRIPT FILES
      1. 1.8.1 Notes About Script Files
      2. 1.8.2 Creating and Saving a Script File
      3. 1.8.3 Running (Executing) a Script File
      4. 1.8.4 Current Folder
    9. 1.9 EXAMPLES OF MATLAB APPLICATIONS
    10. 1.10 PROBLEMS
  8. Chapter 2 Creating Arrays
    1. 2.1 CREATING A ONE-DIMENSIONAL ARRAY (VECTOR)
    2. 2.2 CREATING A TWO-DIMENSIONAL ARRAY (MATRIX)
      1. 2.2.1 The zeros, ones and, eye Commands
    3. 2.3 NOTES ABOUT VARIABLES IN MATLAB
    4. 2.4 THE TRANSPOSE OPERATOR
    5. 2.5 ARRAY ADDRESSING
      1. 2.5.1 Vector
      2. 2.5.2 Matrix
    6. 2.6 USING A COLON : IN ADDRESSING ARRAYS
    7. 2.7 ADDING ELEMENTS TO EXISTING VARIABLES
    8. 2.8 DELETING ELEMENTS
    9. 2.9 BUILT-IN FUNCTIONS FOR HANDLING ARRAYS
    10. 2.10 STRINGS AND STRINGS AS VARIABLES
    11. 2.11 PROBLEMS
  9. Chapter 3 Mathematical Operations with Arrays
    1. 3.1 ADDITION AND SUBTRACTION
    2. 3.2 ARRAY MULTIPLICATION
    3. 3.3 ARRAY DIVISION
    4. 3.4 ELEMENT-BY-ELEMENT OPERATIONS
    5. 3.5 USING ARRAYS IN MATLAB BUILT-IN MATH FUNCTIONS
    6. 3.6 BUILT-IN FUNCTIONS FOR ANALYZING ARRAYS
    7. 3.7 GENERATION OF RANDOM NUMBERS
    8. 3.8 EXAMPLES OF MATLAB APPLICATIONS
    9. 3.9 PROBLEMS
  10. Chapter 4 Using Script Files and Managing Data
    1. 4.1 THE MATLAB WORKSPACE AND THE WORKSPACE WINDOW
    2. 4.2 INPUT TO A SCRIPT FILE
    3. 4.3 OUTPUT COMMANDS
      1. 4.3.1 The disp Command
    4. 4.3.2 The fprintf Command
    5. 4.4 THE save AND load COMMANDS
      1. 4.4.1 The save Command
      2. 4.4.2 The load Command
    6. 4.5 IMPORTING AND EXPORTING DATA
      1. 4.5.1 Commands for Importing and Exporting Data
      2. 4.5.2 Using the Import Wizard
    7. 4.6 EXAMPLES OF MATLAB APPLICATIONS
    8. 4.7 PROBLEMS
  11. Chapter 5 Two-Dimensional Plots
    1. 5.1 THE plot COMMAND
      1. 5.1.1 Plot of Given Data
      2. 5.1.2 Plot of a Function
    2. 5.2 THE fplot COMMAND
    3. 5.3 PLOTTING MULTIPLE GRAPHS IN THE SAME PLOT
      1. 5.3.1 Using the plot Command
      2. 5.3.2 Using the hold on and hold off Commands
      3. 5.3.3 Using the line Command
    4. 5.4 FORMATTING A PLOT
      1. 5.4.1 Formatting a Plot Using Commands
      2. 5.4.2 Formatting a Plot Using the Plot Editor
    5. 5.5 PLOTS WITH LOGARITHMIC AXES
    6. 5.6 PLOTS WITH ERROR BARS
    7. 5.7 PLOTS WITH SPECIAL GRAPHICS
    8. 5.8 HISTOGRAMS
    9. 5.9 POLAR PLOTS
    10. 5.10 PUTTING MULTIPLE PLOTS ON THE SAME PAGE
    11. 5.11 MULTIPLE FIGURE WINDOWS
    12. 5.12 PLOTTING USING THE PLOTS TOOLSTRIP
    13. 5.13 EXAMPLES OF MATLAB APPLICATIONS
    14. 5.14 PROBLEMS
  12. Chapter 6 Programming in MATLAB
    1. 6.1 RELATIONAL AND LOGICAL OPERATORS
    2. 6.2 CONDITIONAL STATEMENTS
      1. 6.2.1 The if-end Structure
      2. 6.2.2 The if-else-end Structure
      3. 6.2.3 The if-elseif-else-end Structure
    3. 6.3 THE switch-case STATEMENT
    4. 6.4 LOOPS
      1. 6.4.1 for-end Loops
      2. 6.4.2 while-end Loops
    5. 6.5 NESTED LOOPS AND NESTED CONDITIONAL STATEMENTS
    6. 6.6 THE break AND continue COMMANDS
    7. 6.7 EXAMPLES OF MATLAB APPLICATIONS
    8. 6.8 PROBLEMS
  13. Chapter 7 User-Defined Functions and Function Files
    1. 7.1 CREATING A FUNCTION FILE
    2. 7.2 STRUCTURE OF A FUNCTION FILE
      1. 7.2.1 Function Definition Line
      2. 7.2.2 Input and Output Arguments
      3. 7.2.3 The H1 Line and Help Text Lines
      4. 7.2.4 Function Body
    3. 7.3 LOCAL AND GLOBAL VARIABLES
    4. 7.4 SAVING A FUNCTION FILE
    5. 7.5 USING A USER-DEFINED FUNCTION
    6. 7.6 EXAMPLES OF SIMPLE USER-DEFINED FUNCTIONS
    7. 7.7 COMPARISON BETWEEN SCRIPT FILES AND FUNCTION FILES
    8. 7.8 ANONYMOUS FUNCTIONS
    9. 7.9 FUNCTION FUNCTIONS
      1. 7.9.1 Using Function Handles for Passing a Function into a Function Function
      2. 7.9.2 Using a Function Name for Passing a Function into a Function Function
    10. 7.10 SUBFUNCTIONS
    11. 7.11 NESTED FUNCTIONS
    12. 7.12 EXAMPLES OF MATLAB APPLICATIONS
    13. 7.13 PROBLEMS
  14. Chapter 8 Polynomials, Curve Fitting, and Interpolation
    1. 8.1 POLYNOMIALS
      1. 8.1.1 Value of a Polynomial
      2. 8.1.2 Roots of a Polynomial
      3. 8.1.3 Addition, Multiplication, and Division of Polynomials
      4. 8.1.4 Derivatives of Polynomials
    2. 8.2 CURVE FITTING
      1. 8.2.1 Curve Fitting with Polynomials; The polyfit Function
      2. 8.2.2 Curve Fitting with Functions Other than Polynomials
    3. 8.3 INTERPOLATION
    4. 8.4 THE BASIC FITTING INTERFACE
    5. 8.5 EXAMPLES OF MATLAB APPLICATIONS
    6. 8.6 PROBLEMS
  15. Chapter 9 Applications in Numerical Analysis
    1. 9.1 SOLVING AN EQUATION WITH ONE VARIABLE
    2. 9.2 FINDING A MINIMUM OR A MAXIMUM OF A FUNCTION
    3. 9.3 NUMERICAL INTEGRATION
    4. 9.4 ORDINARY DIFFERENTIAL EQUATIONS
    5. 9.5 EXAMPLES OF MATLAB APPLICATIONS
    6. 9.6 PROBLEMS
  16. Chapter 10 Three-Dimensional Plots
    1. 10.1 LINE PLOTS
    2. 10.2 MESH AND SURFACE PLOTS
    3. 10.3 PLOTS WITH SPECIAL GRAPHICS
    4. 10.4 THE view COMMAND
    5. 10.5 EXAMPLES OF MATLAB APPLICATIONS
    6. 10.6 PROBLEMS
  17. Chapter 11 Symbolic Math
    1. 11.1 SYMBOLIC OBJECTS AND SYMBOLIC EXPRESSIONS
      1. 11.1.1 Creating Symbolic Objects
      2. 11.1.2 Creating Symbolic Expressions
      3. 11.1.3 The findsym Command and the Default Symbolic Variable
    2. 11.2 CHANGING THE FORM OF AN EXISTING SYMBOLIC EXPRESSION
      1. 11.2.1 The collect, expand, and factor Commands
      2. 11.2.2 The simplify and simple Commands
      3. 11.2.3 The pretty Command
    3. 11.3 SOLVING ALGEBRAIC EQUATIONS
    4. 11.4 DIFFERENTIATION
    5. 11.5 INTEGRATION
    6. 11.6 SOLVING AN ORDINARY DIFFERENTIAL EQUATION
    7. 11.7 PLOTTING SYMBOLIC EXPRESSIONS
    8. 11.8 NUMERICAL CALCULATIONS WITH SYMBOLIC EXPRESSIONS
    9. 11.9 EXAMPLES OF MATLAB APPLICATIONS
    10. 11.10 PROBLEMS
  18. Appendix: Summary of Characters, Commands, and Functions
  19. Index