توضیحاتی در مورد کتاب Programming in MATLAB
نام کتاب : Programming in MATLAB
عنوان ترجمه شده به فارسی : برنامه نویسی در متلب
سری : Always learning
نویسندگان : Patel, Ram N
ناشر : Pearson India
سال نشر : 2014
تعداد صفحات : 433
ISBN (شابک) : 9789332524811 , 2052052062
زبان کتاب : English
فرمت کتاب : pdf
حجم کتاب : 27 مگابایت
بعد از تکمیل فرایند پرداخت لینک دانلود کتاب ارائه خواهد شد. درصورت ثبت نام و ورود به حساب کاربری خود قادر خواهید بود لیست کتاب های خریداری شده را مشاهده فرمایید.
فهرست مطالب :
Cover......Page 1
Contents......Page 6
Preface......Page 14
Acknowledgments......Page 18
About the Authors......Page 20
1.2 Getting Started......Page 22
1.3.1 Command Window......Page 23
1.3.2 Command History Window......Page 24
1.3.4 Workspace and Array Editor......Page 25
1.3.5 Help Browser......Page 26
1.3.7 Path Browser......Page 27
1.4 Getting Help from Command Window......Page 30
1.5 General Syntax......Page 31
1.6 Writing Simple Expressions......Page 32
1.7 Screen Display Control (The \"Format\" Function)......Page 36
Programming Tips and Pitfalls......Page 37
Exercises......Page 38
2.2 Data Types in MATLAB......Page 40
2.3 MATLAB Array......Page 42
2.4 Creating Vectors and Matrices......Page 44
2.4.1 Creating Sub-matrices of a Given Matrix......Page 46
2.4.2 Changing the Elements of a Matrix......Page 48
2.4.3 Creating Special Matrices......Page 49
2.4.4 Concatenation......Page 51
2.5.1 Matrix Operators......Page 54
2.5.2 Matrix Multiplication and Inversion......Page 57
2.5.3 Array Operators......Page 59
2.5.4 Relational Operators......Page 66
2.5.5 Logical Operators......Page 68
2.6 Properties of a Matrix......Page 69
2.7 Replicating Data to Form a Matrix......Page 70
Programming Tips and Pitfalls......Page 71
Exercises......Page 72
3.2 2-Dimensional Plots......Page 77
3.3.1 Changing the Axes......Page 81
3.3.2 Adding Text......Page 82
3.4 Multiple Plots......Page 85
3.4.1 Multiple Plots on a Window......Page 87
3.5 Subplotting......Page 89
3.6 Some Other Useful 2-D Plots......Page 94
3.7.1 Using Handle Graphics......Page 97
3.7.2 An Easier Way to Plot Editing......Page 106
3.8 3-D Graphics......Page 110
3.9 Function Plotters......Page 119
Summary......Page 122
Exercises......Page 123
4.2 Conditional Statements......Page 126
4.3 Loops......Page 130
4.4 Nested Loops......Page 133
4.5 Breaking Control Structures (Break and Continue)......Page 134
4.7 Recording a MATLAB Session......Page 135
4.8 Saving and Retrieving Workspace Variables and Spreadsheet Data......Page 137
4.9 Handling External Files......Page 138
4.9.3 Reading from a File......Page 139
4.9.4 Closing a File......Page 140
4.11 MATLAB Import Wizard......Page 142
Summary......Page 146
Exercises......Page 147
5.1 Introduction......Page 149
5.2 Making Simple Script and Function Files......Page 150
5.3 Input and Output Arguments in Functions......Page 155
5.3.1 Arguments of Different Types......Page 156
5.3.2 Variable Number of Arguments......Page 158
5.4 Types of Functions......Page 163
5.4.1 Function Functions, Feval, and Inline......Page 164
5.4.2 Subfunctions......Page 170
5.5 Global and Persistent Variables......Page 171
5.6 Polynomial Functions......Page 174
5.7 Recursive Functions......Page 176
5.8 Common Errors in Using Functions......Page 181
Summary......Page 183
Exercises......Page 184
6.2 Numerical Integration......Page 187
6.3 Numerical Differentiation......Page 189
6.4 Interpolation......Page 191
6.4.1 Multidimensional Interpolation......Page 192
6.5 Curve Fitting......Page 194
6.6 Numerical Optimization......Page 197
6.7 Linear Equations......Page 199
6.7.1 Gauss Elimination......Page 200
6.7.2 Ill-conditioned Problems......Page 204
6.7.3 Pivoting to Handle Ill-conditioned Problems......Page 207
6.8.1 Gauss-Seidel (GS) Method......Page 209
6.8.3 Newton-Raphson (NR) Method......Page 211
6.8.4 NR Solution for a System of Equations......Page 213
6.9.1 Euler’s Method for Solution of Differential Equations......Page 214
6.9.2 Euler’s Modified Method......Page 215
6.9.4 Runge-Kutta Method (Order-4)......Page 218
6.10 Solution of Differential Equations through ODE Functions......Page 220
Programming Tips and Pitfalls......Page 222
Exercises......Page 223
7.1 Introduction......Page 226
7.2 MATLAB Memory Storage......Page 227
7.4 Coding Tips for Memory Usage......Page 231
7.4.1 Preallocation of Arrays......Page 232
7.4.2 Breaking Down the Problem......Page 234
7.4.3 Use Temporary Variables Wisely......Page 235
7.4.4 Using Less Bytes Per Data Member......Page 237
7.4.5 Writing Functions Carefully......Page 239
7.4.6 Using Global Variables......Page 240
7.5 System-Related Tips for Memory Usage......Page 241
Exercises......Page 242
8.1 Introduction......Page 245
8.3 Using the Debugger......Page 246
8.4 Developing Bug-free Programs......Page 255
8.5.1 Bug Prevention......Page 261
8.5.2 Bug Detection......Page 262
8.5.3 Common Run-time Errors......Page 263
8.6.1 Program Profiling......Page 264
8.6.2 Using the Profiler and M-Lint for Enhancing Performance......Page 268
8.6.3 When to Use the Profiler......Page 272
Summary......Page 273
Exercises......Page 274
9.1 Introduction......Page 280
9.2.1 MATLAB Indexing......Page 281
9.2.2 Utility Functions......Page 284
9.3 Loop Conversion......Page 289
9.4 MATLAB Acceleration......Page 291
9.5 Solving Problems with Vectorization......Page 294
Programming Tips and Pitfalls......Page 302
Exercises......Page 303
10.1 Introduction......Page 306
10.2 MATLAB Infinity and Zero......Page 308
10.3 Round-off Errors......Page 309
10.4 Propagated Errors......Page 310
10.5 Getting Around the Errors......Page 312
Programming Tips and Pitfalls......Page 316
Exercises......Page 317
11.2 Symbolic Processing......Page 319
11.2.1 Creating and Using Symbolic Objects......Page 320
11.2.2 Expressions Involving Many Symbolic Objects......Page 321
11.2.3 Variable Substitution......Page 322
11.2.4 Algebraic Operations with Symbolic Expressions......Page 323
11.2.5 Differentiation with Symbolic Expressions......Page 324
11.2.6 Integration with Symbolic Expressions......Page 325
11.2.7 Solving Algebraic Equations......Page 326
11.2.8 Solving Differential Equations......Page 329
11.2.9 Laplace Transform......Page 332
11.3 Cell Arrays and Structures......Page 333
11.4.1 The Distinction between mx and mex Prefixes......Page 336
11.4.2 Creating C Language MEX-Files......Page 337
11.5.1 Classes in MATLAB......Page 342
11.5.2 Overloading......Page 347
11.5.3 Inheritance......Page 348
Programming Tips and Pitfalls......Page 350
Exercises......Page 351
12.2.1 Starting Simulink......Page 353
12.2.2 Opening a New Model File......Page 354
12.2.3 Creating Blocks......Page 356
12.2.4 Setting the Parameters and Making Connections......Page 357
12.2.5 Setting the Simulink Configuration Parameters......Page 358
12.2.6 Running/Stopping the Simulation......Page 359
12.2.7 Sending Data to the Workspace......Page 361
12.3 Dealing with Complex System Equations......Page 364
12.4 Creating Subsystems......Page 368
12.5 Masking Subsystems......Page 369
12.6 Using the Blocksets and Toolboxes......Page 373
12.6.1 Physical Modeling with Simulink......Page 374
12.6.2 Essential Rules in Physical Modeling......Page 378
12.7 Linear State Space Model From Simulink Models......Page 379
12.8 Running the Simulink Model Through the Command Line......Page 382
12.9 Development of Graphical User Interface......Page 384
12.10.2 Making Your Model Compatible to Different Simulink Versions......Page 392
Programming Tips and Pitfalls......Page 393
Summary......Page 394
Exercises......Page 395
13.1 Introduction......Page 397
13.1.1 Image as a Matrix......Page 398
13.1.2 Getting Information about an Image......Page 401
13.1.4 Basic Commands in Image Processing......Page 402
13.2.1 Creating and Displaying Image Histogram......Page 404
13.2.2 Histogram Equalization......Page 406
13.3.1 Linear Spatial Filtering......Page 408
13.3.2 Spatial Noise Filtering......Page 410
13.3.3 Morphological Image Processing......Page 412
13.4.1 Point Detection......Page 415
13.4.2 Line Detection......Page 419
13.4.3 Edge Detection......Page 420
13.5.2 Local Thresholding......Page 423
Programming Tips and Pitfalls......Page 425
Exercises......Page 426
Index......Page 428