MATLAB : An Introduction with Applications (5TH)
[Book Description]
MATLAB: An Introduction with Applications 5th Edition walks readers through the ins and outs of this powerful software for technical computing. The text describes basic features of the program and shows how to use it in simple arithmetic operations with scalars. The topic of arrays (the basis of MATLAB) is examined, along with a wide range of other applications. MATLAB: An Introduction with Applications 5th Edition is presented gradually and in great detail, generously illustrated through computer screen shots and step-by-step tutorials, and applied in problems in mathematics, science, and engineering.
[Table of Contents]
Preface v
Introduction 1 (4)
Chapter 1 Starting with MATLAB 5 (30)
1.1 Starting MATLAB, MATLAB Windows 5 (4)
1.2 Working in the Command Window 9 (2)
1.3 Arithmetic Operations with Scalars 11 (1)
1.3.1 Order of Precedence 11 (1)
1.3.2 Using MATLAB as a Calculator 12 (1)
1.4 Display Formats 12 (2)
1.5 Elementary Math Built-in Functions 14 (2)
1.6 Defining Scalar Variables 16 (3)
1.6.1 The Assignment Operator 16 (2)
1.6.2 Rules About Variable Names 18 (1)
1.6.3 Predefined Variables and Keywords 19 (1)
1.7 Useful Commands for Managing Variables 19 (1)
1.8 Script Files 20 (4)
1.8.1 Notes About Script Files 20 (1)
1.8.2 Creating and Saving a Script File 21 (1)
1.8.3 Running (Executing) a Script File 22 (1)
1.8.4 Current Folder 22 (2)
1.9 Examples of MATLAB Applications 24 (3)
1.10 Problems 27 (8)
Chapter 2 Creating Arrays 35 (28)
2.1 Creating a One-Dimensional Array 35 (4)
(Vector)
2.2 Creating a Two-Dimensional Array 39 (2)
(Matrix)
2.2.1 The zeros, ones and eye Commands 40 (1)
2.3 Notes About Variables in MATLAB 41 (1)
2.4 The Transpose Operator 41 (1)
2.5 Array Addressing 42 (2)
2.5.1 Vector 42 (1)
2.5.2 Matrix 43 (1)
2.6 Using a Colon in Addressing Arrays 44 (2)
2.7 Adding Elements to Existing Variables 46 (2)
2.8 Deleting Elements 48 (1)
2.9 Built-in Functions for Handling Arrays 49 (4)
2.10 Strings and Strings as Variables 53 (2)
2.11 Problems 55 (8)
Chapter 3 Mathematical Operations with 63 (32)
Arrays
3.1 Addition and Subtraction 64 (1)
3.2 Array Multiplication 65 (3)
3.3 Array Division 68 (4)
3.4 Element-by-Element Operations 72 (3)
3.5 Using Arrays in matlab Built-in Math 75 (1)
Functions
3.6 Built-in Functions for Analyzing 75 (2)
Arrays
3.7 Generation of Random Numbers 77 (3)
3.8 Examples of matlab Applications 80 (6)
3.9 Problems 86 (9)
Chapter 4 Using Script Files and Managing 95 (38)
Data
4.1 The matlab workspace and the 96 (1)
workspace window
4.2 Input to a Script File 97 (3)
4.3 Output Commands 100(11)
4.3.1 The disp Command 101(2)
4.3.2 The fprintf Command 103(8)
4.4 The save and load Commands 111(3)
4.4.1 The save Command 111(1)
4.4.2 The load Command 112(2)
4.5 Importing and Exporting Data 114(4)
4.5.1 Commands for Importing and 114(2)
Exporting Data
4.5.2 Using the Import Wizard 116(2)
4.6 Examples of MATLAB Applications 118(5)
4.7 Problems 123(10)
Chapter 5 Two-Dimensional Plots 133(42)
5.1 The plot Command 134(6)
5.1.1 Plot of Given Data 138(1)
5.1.2 Plot of a Function 139(1)
5.2 The f plot Command 140(1)
5.3 Plotting Multiple Graphs in the Same 141(3)
Plot
5.3.1 Using the plot Command 141(1)
5.3.2 Using the hold on and hold off 142(1)
Commands
5.3.3 Using the line Command 143(1)
5.4 Formatting a Plot 144(5)
5.4.1 Formatting a Plot Using Commands 144(4)
5.4.2 Formatting a Plot Using the Plot 148(1)
Editor
5.5 Plots with Logarithmic Axes 149(1)
5.6 Plots with Error Bars 150(2)
5.7 Plots with Special Graphics 152(1)
5.8 Histograms 153(3)
5.9 Polar Plots 156(1)
5.10 Putting Multiple Plots on the Same 157(1)
Page
5.11 Multiple Figure Windows 157(2)
5.12 Plotting Using the Plots Toolstrip 159(1)
5.13 Examples of matlab Applications 160(5)
5.14 Problems 165(10)
Chapter 6 Programming in MATLAB 175(46)
6.1 Relational and Logical Operators 176(8)
6.2 Conditional Statements 184(5)
6.2.1 The if-end Structure 184(2)
6.2.2 The if-else-end Structure 186(1)
6.2.3 The if-elseif-else-end Structure 187(2)
6.3 The switch-case Statement 189(3)
6.4 Loops 192(8)
6.4.1 for-end Loops 192(5)
6.4.2 while-end Loops 197(3)
6.5 Nested Loops and Nested Conditional 200(2)
Statements
6.6 The break and continue Commands 202(1)
6.7 Examples of MATLAB Applications 203(8)
6.8 Problems 211(10)
Chapter 7 User-Defined Functions and 221(40)
Function Files
7.1 Creating a Function File 222(1)
7.2 Structure of a Function File 223(3)
7.2.1 Function Definition Line 224(1)
7.2.2 Input and Output Arguments 224(2)
7.2.3 The H1 Line and Help Text Lines 226(1)
7.2.4 Function Body 226(1)
7.3 Local and Global Variables 226(1)
7.4 Saving a Function File 227(1)
7.5 Using a User-Defined Function 228(1)
7.6 Examples of Simple User-Defined 229(2)
Functions
7.7 Comparison between Script Files and 231(1)
Function Files
7.8 Anonymous Functions 231(3)
7.9 Function Functions 234(6)
7.9.1 Using Function Handles for 235(3)
Passing a Function into a Function
Function
7.9.2 Using a Function Name for Passing 238(2)
a Function into a Function Function
7.10 Subfunctions 240(2)
7.11 Nested Functions 242(3)
7.12 Examples of MATLAB Applications 245(3)
7.13 Problems 248(13)
Chapter 8 Polynomials, Curve Fitting, and 261(34)
Interpolation
8.1 Polynomials 261(6)
8.1.1 Value of a Polynomial 262(1)
8.1.2 Roots of a Polynomial 263(1)
8.1.3 Addition, Multiplication, and 264(2)
Division of Polynomials
8.1.4 Derivatives of Polynomials 266(1)
8.2 Curve Fitting 267(7)
8.2.1 Curve Fitting with Polynomials; 267(4)
The polyfit Function
8.2.2 Curve Fitting with Functions 271(3)
Other than Polynomials
8.3 Interpolation 274(4)
8.4 The Basic Fitting Interface 278(3)
8.5 Examples of MATLAB Applications 281(5)
8.6 Problems 286(9)
Chapter 9 Applications in Numerical Analysis 295(28)
9.1 Solving an Equation with One Variable 295(3)
9.2 Finding a Minimum or a Maximum of a 298(2)
Function
9.3 Numerical Integration 300(3)
9.4 Ordinary Differential Equations 303(4)
9.5 Examples of MATLAB Applications 307(6)
9.6 Problems 313(10)
Chapter 10 Three-Dimensional Plots 323(24)
10.1 Line Plots 323(1)
10.2 Mesh and Surface Plots 324(7)
10.3 Plots with Special Graphics 331(2)
10.4 The view Command 333(3)
10.5 Examples of MATLAB Applications 336(5)
10.6 Problems 341(6)
Chapter 11 Symbolic Math 347(46)
11.1 Symbolic Objects and Symbolic 348(6)
Expressions
11.1.1 Creating Symbolic Objects 348(2)
11.1.2 Creating Symbolic Expressions 350(3)
11.1.3 The findsym Command and the 353(1)
Default Symbolic Variable
11.2 Changing the Form of an Existing 354(4)
Symbolic Expression
11.2.1 The collect, expand, and factor 354(2)
Commands
11.2.2 The simplify and simple Commands 356(1)
11.2.3 The pretty Command 357(1)
11.3 Solving Algebraic Equations 358(5)
11.4 Differentiation 363(2)
11.5 Integration 365(1)
11.6 Solving an Ordinary Differential 366(3)
Equation
11.7 Plotting Symbolic Expressions 369(3)
11.8 Numerical Calculations with Symbolic 372(4)
Expressions
11.9 Examples of MATLAB Applications 376(8)
11.10 Problems 384(9)
Appendix: Summary of Characters, Commands, and 393(8)
Functions
Answers to Selected Problems
www.wiley.com/college/gilat
Index 401