Preface |
|
xi | |
|
|
1 | (34) |
|
|
2 | (3) |
|
|
5 | (1) |
|
1.3 Simple Arithmetic Operations |
|
|
6 | (2) |
|
1.4 MATLAB Built-in Library Functions |
|
|
8 | (3) |
|
1.5 Output Display in MATLAB |
|
|
11 | (2) |
|
|
13 | (3) |
|
|
16 | (3) |
|
|
16 | (2) |
|
|
18 | (1) |
|
|
18 | (1) |
|
|
19 | (1) |
|
|
19 | (13) |
|
1.8.1 Non-ASCII Character Display |
|
|
20 | (1) |
|
1.8.2 Font-Related Attributes |
|
|
20 | (2) |
|
1.8.3 Plotted Curve (Line) Attributes |
|
|
22 | (3) |
|
1.8.4 Super-Positioning of Plots |
|
|
25 | (2) |
|
|
27 | (1) |
|
|
28 | (2) |
|
1.8.7 Graphics of Functions of Two Variables |
|
|
30 | (2) |
|
1.9 Interrupting Calculations |
|
|
32 | (1) |
|
|
32 | (1) |
|
|
33 | (1) |
|
|
33 | (2) |
|
|
35 | (24) |
|
|
36 | (2) |
|
2.1.1 Referencing an Element in a Matrix |
|
|
37 | (1) |
|
|
38 | (1) |
|
|
38 | (1) |
|
|
39 | (1) |
|
|
40 | (2) |
|
|
42 | (3) |
|
2.7 Manipulating Matrices |
|
|
45 | (1) |
|
2.8 Array (Element-by-Element) Operations on Matrices |
|
|
46 | (1) |
|
2.9 Matrix Multiplication |
|
|
47 | (1) |
|
2.9.1 Matrix Exponentiation |
|
|
48 | (1) |
|
|
48 | (5) |
|
|
48 | (1) |
|
|
49 | (1) |
|
2.10.3 Concatenation of Strings |
|
|
49 | (1) |
|
2.10.4 Interconversion between Double and Char |
|
|
50 | (1) |
|
2.10.5 Strings Comparison |
|
|
51 | (2) |
|
|
53 | (2) |
|
|
55 | (4) |
|
3 MATLAB Scripting Language: M-File |
|
|
59 | (20) |
|
|
60 | (1) |
|
3.2 MATLAB Search Path, Path Management, and Startup |
|
|
60 | (3) |
|
|
63 | (4) |
|
3.3.1 Effective Naming and Referencing of M-Files |
|
|
66 | (1) |
|
|
67 | (5) |
|
|
72 | (4) |
|
3.5.1 Scientific Notation, Significant Figures, and Precision |
|
|
72 | (1) |
|
3.5.2 Errors Related to Floating-Point Arithmetic |
|
|
73 | (1) |
|
3.5.3 Numerical Stability |
|
|
74 | (1) |
|
|
75 | (1) |
|
3.5.5 Run-Time Logic Errors |
|
|
75 | (1) |
|
3.5.6 Remedies to Minimize Errors |
|
|
75 | (1) |
|
|
76 | (3) |
|
4 Image and Image Analysis |
|
|
79 | (32) |
|
4.1 Reading a Graphics Image |
|
|
80 | (2) |
|
4.2 Graphics Image Display |
|
|
82 | (4) |
|
4.3 MATLAB Image-Modifying Functions |
|
|
86 | (3) |
|
|
89 | (1) |
|
|
90 | (1) |
|
4.6 Mathematical Manipulation of Image Arrays |
|
|
90 | (2) |
|
4.7 Image Acquisition/Quality Control |
|
|
92 | (7) |
|
4.8 Image Acquisition/Bacterial Colony Counting |
|
|
99 | (6) |
|
4.9 MATLAB Image Acquisition Tool (imaqtool) |
|
|
105 | (2) |
|
|
107 | (4) |
|
|
111 | (40) |
|
5.1 (Two-Parameter) Linear Regression |
|
|
112 | (4) |
|
|
116 | (3) |
|
|
119 | (5) |
|
5.4 Statistical Definitions |
|
|
124 | (2) |
|
|
124 | (1) |
|
|
124 | (1) |
|
5.4.3 Residual Sum of Squares |
|
|
125 | (1) |
|
|
125 | (1) |
|
5.4.5 R2, or the Coefficient of Multiple Determination |
|
|
125 | (1) |
|
5.4.6 AdjR2 (R2a), Adjusted Coefficient of Multiple Determination |
|
|
126 | (1) |
|
|
126 | (3) |
|
5.5.1 By-the-Naked-Eye Test (No Statistics) |
|
|
126 | (1) |
|
5.5.2 The Model Goodness (with Statistics) |
|
|
127 | (2) |
|
5.6 MATLAB's Curve Fitting Toolbox (cftool) |
|
|
129 | (13) |
|
5.6.1 Results of MATLAB's cftool |
|
|
136 | (6) |
|
5.7 MATLAB's Surface Fitting ToolBox (sftool) |
|
|
142 | (5) |
|
|
147 | (4) |
|
|
151 | (18) |
|
|
152 | (5) |
|
6.1.1 Description (MATLAB's Trapz Help) |
|
|
153 | (4) |
|
|
157 | (6) |
|
|
163 | (1) |
|
|
164 | (5) |
|
7 Solving Differential Equations |
|
|
169 | (30) |
|
7.1 Euler's Explicit Method |
|
|
170 | (3) |
|
7.2 Euler's Implicit Method |
|
|
173 | (3) |
|
7.3 Runge-Kutta (R-K) Method |
|
|
176 | (7) |
|
7.4 Solution of a Set of Ordinary Differential Equations |
|
|
183 | (2) |
|
7.5 Solution of a Higher-Order Ordinary Differential Equation |
|
|
185 | (2) |
|
7.6 ODE and System Solver Using MATLAB dsolve |
|
|
187 | (3) |
|
7.7 The Shooting Method for a Higher-Order Ordinary Differential Equation |
|
|
190 | (3) |
|
|
193 | (6) |
|
8 A System of Algebraic Equations |
|
|
199 | (20) |
|
8.1 The Determinant of a Matrix and Its Inverse |
|
|
200 | (3) |
|
8.1.1 (2 × 2) Square Matrix |
|
|
200 | (1) |
|
8.1.2 (3 × 3) Square Matrix |
|
|
201 | (2) |
|
8.2 A System of (n × n) Linear Algebraic Equations |
|
|
203 | (12) |
|
8.2.1 A System of (n × n) Linearly Independent Equations (⇒A≠O) |
|
|
203 | (4) |
|
8.2.2 Gauss Elimination Method with Partial Pivoting |
|
|
207 | (4) |
|
|
211 | (4) |
|
|
215 | (4) |
|
|
219 | (44) |
|
|
220 | (3) |
|
9.2 Typical Distribution Functions |
|
|
223 | (16) |
|
9.2.1 Uniform Distribution |
|
|
223 | (1) |
|
9.2.2 Normal Distribution |
|
|
224 | (1) |
|
9.2.3 Binomial Distribution |
|
|
225 | (3) |
|
9.2.4 Poisson Distribution |
|
|
228 | (2) |
|
9.2.5 Exponential Distribution Function |
|
|
230 | (1) |
|
9.2.6 Gamma Distribution Function |
|
|
231 | (2) |
|
9.2.7 Chi-Square Distribution |
|
|
233 | (2) |
|
9.2.8 Weibull Distribution |
|
|
235 | (2) |
|
|
237 | (2) |
|
9.3 Maximum Likelihood Estimates (MLE) |
|
|
239 | (2) |
|
9.4 A Full-Fledged Example Showing Statistical Data Acquisition, Analysis, and Visualization by MATLAB |
|
|
241 | (16) |
|
9.4.1 Load In the Data Using the Dataset Array |
|
|
241 | (2) |
|
9.4.2 Data Management and Manipulation |
|
|
243 | (1) |
|
9.4.3 Show Plot by a Category |
|
|
244 | (1) |
|
|
245 | (2) |
|
|
247 | (1) |
|
9.4.6 Screening Data Using Hypothesis Testing |
|
|
247 | (1) |
|
9.4.7 Flagging or Labeling Data: Alive vs. Dead Sensor |
|
|
248 | (3) |
|
9.4.8 Analysis of Variance (ANOVA) |
|
|
251 | (4) |
|
9.4.9 Clustering (Showing Groups and Outliers) |
|
|
255 | (2) |
|
|
257 | (1) |
|
|
257 | (6) |
|
10 Chemical Engineering Applications |
|
|
263 | (68) |
|
10.1 A Simple Electric Circuit |
|
|
265 | (2) |
|
10.2 Van der Waals' Equation of State |
|
|
267 | (5) |
|
10.3 A Simple Cooling Tank |
|
|
272 | (2) |
|
10.4 Isothermal Batch Reactor |
|
|
274 | (5) |
|
10.5 A Non-Isothermal CSTR with Water Cooling Jacket |
|
|
279 | (5) |
|
10.6 A Pressurized, Isothermal Gas-Phase CSTR |
|
|
284 | (4) |
|
10.7 One-Dimensional Heat Flow |
|
|
288 | (12) |
|
10.7.4 Solving 1D Heat Equation Using the MATLAB PDE Solver |
|
|
295 | (5) |
|
10.8 One-Dimensional Mass Flow |
|
|
300 | (7) |
|
10.8.1 Solving 1D Mass Equation Using the MATLAB PDE Solver |
|
|
304 | (3) |
|
10.9 Unconstrained 1D Function Minimization |
|
|
307 | (3) |
|
10.10 Unconstrained 2D Function Minimization |
|
|
310 | (1) |
|
10.11 Constrained 2D Function Minimization |
|
|
311 | (4) |
|
10.11.1 Inequality Constraint |
|
|
311 | (2) |
|
10.11.2 Equality Constraint |
|
|
313 | (2) |
|
10.12 Bubble-Point Calculation for Benzene-Toluene Mixture |
|
|
315 | (2) |
|
10.13 Dew-Point Calculation for Benzene-Toluene Mixture |
|
|
317 | (2) |
|
|
319 | (12) |
|
11 MATLAB Graphical User Interface Design Environment (GUIDE) |
|
|
331 | (26) |
|
11.1 What Is the MATLAB Graphical User Interface Design Environment? |
|
|
332 | (1) |
|
11.2 Invoking the MATLAB GUIDE |
|
|
332 | (1) |
|
11.3 Simple Tasks with the MATLAB GUIDE |
|
|
333 | (6) |
|
11.4 Graphical User Interface for an Ideal Gas Volume Calculation |
|
|
339 | (3) |
|
11.5 Graphical User Interface for Evaluating Volume-Related Properties of a Pure Substance |
|
|
342 | (3) |
|
11.6 Saving Results to a File |
|
|
345 | (1) |
|
11.7 Deployment of MATLAB-Based Applications |
|
|
346 | (8) |
|
|
354 | (3) |
Index |
|
357 | |