𝔖 Scriptorium
✦   LIBER   ✦

📁

A MATLAB® primer for technical programming for materials science and engineering

✍ Scribed by Burstein, Leonid


Publisher
Woodhead Publishing
Year
2020
Tongue
English
Leaves
286
Series
Woodhead Publishing series in technology and engineering
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Table of Contents


Front Cover......Page 1
A MATLAB Primer for Technical Programming in Materials Science and Engineering......Page 4
Copyright......Page 5
Dedication......Page 6
Contents......Page 8
Preface......Page 10
1.1. Some history......Page 12
1.2. Purpose and audience of the book......Page 13
1.3. About the book topics......Page 14
1.6. Order of presentation......Page 15
2.1.1. MATLAB Desktop and its toolstrip and windows......Page 18
2.1.1.1. Toolstrip......Page 19
2.1.2. Interactive calculations with elementary math functions......Page 20
2.1.3. Help commands and Help Window......Page 25
2.1.4. About toolboxes......Page 27
2.1.5. About variables and commands to variable management......Page 28
2.1.6. Output formats......Page 29
2.1.7. Output commands......Page 30
2.1.8.2. Brinell hardness number......Page 32
2.1.8.4. Stress intensity factor......Page 33
2.2.1.1. Generation of vectors......Page 34
2.2.1.2. Generation of matrices and arrays......Page 36
2.2.2.1. Addition and subtraction......Page 39
2.2.2.2. Multiplication......Page 40
2.2.2.3. Division......Page 42
2.2.3. Array operations......Page 44
2.2.4. Commands for generation of some special matrices......Page 46
2.2.5. Displaying table with the disp and fprintf commands......Page 52
2.2.6.1. Volume via vectors......Page 53
2.2.6.3. Diffusion coefficient statistics......Page 55
2.2.6.4. Mean time between failures......Page 56
2.3. Flow control......Page 57
2.3.1.1. Relational operators......Page 58
2.3.1.2. Logical operators......Page 59
Application example: Screening of the metals in respect to their density......Page 61
2.3.2. The If statements......Page 63
2.3.3. Loops in MATLAB......Page 64
2.3.4.1. Isothermal liquid density: Defining coefficients of the linear fit......Page 66
2.3.4.2. Bulk modulus of a material......Page 68
2.3.4.3. Molar concentration......Page 69
2.4. Questions and exercises for self-testing......Page 70
2.5. Answers to selected questions and exercises......Page 75
3.1.1. Two-dimensional plots......Page 78
The plot command for multiple curves......Page 85
The hold command for generating multiple curves......Page 86
3.1.1.2. Several plots on the same page......Page 87
The axis commands......Page 89
The xlabel, ylabel, and title commands......Page 91
The gtext and text commands......Page 92
Formatting text strings......Page 93
3.1.2.1. Presenting line in 3D plots......Page 95
3.1.2.2. Presenting mesh in 3D plots......Page 97
3.1.2.3. Surfaces in 3D plots......Page 99
The view command, viewpoint, and different 3D projections of the graph......Page 101
3.1.2.5. About the 3D plot rotation......Page 104
3.1.3.1. Plot with error bars......Page 105
3.1.3.2. Plot with semilogarithmic axes......Page 106
3.1.3.3. Plot with two y-axes......Page 107
3.2.1. The hist command......Page 109
3.2.3. The Data Statistics tool......Page 111
3.3. Supplementary commands for generating 2D and 3D graphs......Page 114
3.4.1. Surface tension of fluid as a function of temperature......Page 118
3.4.2. Stress-strain graph generated by the experimental data......Page 119
3.4.3. The Lennard-Jones interatomic potential......Page 120
3.4.4. Transient one-dimensional diffusion......Page 121
3.4.5. Temperature of a square plate......Page 122
3.4.6. Velocity distribution of the gas molecules......Page 124
3.5. Questions and exercises for self-testing......Page 125
3.6. Answer to selected questions and exercises......Page 129
4.1.1. How to create, save, and run the script file......Page 134
4.1.1.2. About the Current folder......Page 136
4.1.1.3. Running script file......Page 137
4.1.2. Input the variable values from the Command Window......Page 138
4.2.1. Creating the user-defined function......Page 139
4.2.1.1. Definition line of the function......Page 140
4.2.1.3. Function body, local, and global variables......Page 141
4.2.3. Running a user-defined function......Page 142
4.3. Selected MATLAB functions and its applications in MSE......Page 143
4.3.1. The interp1 function for interpolation and extrapolation......Page 144
4.3.2. Nonlinear algebraic equation solution......Page 145
4.3.3. Finding of the extremal points of a function......Page 147
4.3.4.1. The quad function......Page 149
4.3.4.2. The trapz function......Page 150
4.3.5. Derivative calculation......Page 151
4.3.6. Supplementary commands for interpolation, equation solution, integration, and differentiation......Page 153
4.4.1. Launching the Live Editor......Page 155
4.4.2. Creating the life script with the Live Editor......Page 156
4.4.3.1. Creating Live Function......Page 159
4.4.3.4. About the interactive controls......Page 160
4.5.2. Dynamic viscosity: Reyn to pascal-second and vice versa convertor......Page 161
4.5.3. Thermal conductivity data interpolation......Page 163
4.5.4. Density of a solid at given pressure and temperature......Page 165
4.5.5. Maximal radiance of a surface by the Planck's law......Page 166
4.5.6. Isochoric thermal pressure coefficient of a substance in the solid state......Page 168
4.5.7. Isothermal compressibility for a gaseous substance......Page 170
4.6. Questions and exercises for self-testing......Page 172
4.7. Answers to selected questions and exercises......Page 177
5.1.1. Fitting by polynomials......Page 180
5.1.2. Fitting with nonpolynomial functions......Page 183
5.1.3. About the goodness of fit......Page 185
5.2. Interactive fitting with the Basic Fitting interface......Page 187
5.2.1.1. Select data´´ field......Page 188<br> 5.2.1.3.Check to display fits on figure´´ area......Page 189
5.2.3.1. Enter value(s) or a valid MATLAB expression´´......Page 190<br> 5.2.4. An example of using theBasic Fitting´´ tool......Page 191
5.3. Single- and multivariate fitting via optimization......Page 193
5.4.1. Fitting of the compressibility factor with the virial series......Page 196
5.4.2. Thermal conductivity fitting with the 3rd and 4th degree polynomials......Page 198
5.4.3. Fitting the stress-strain data by the nonpolynomial equation......Page 200
5.4.4. Fitting of the specific heat of a metal with the Basic Fitting interface......Page 203
5.4.5. Fitting the dynamical viscosity-temperature-pressure data by optimization......Page 204
5.5. Questions and exercises for self-testing......Page 206
5.6. Answers to selected questions and exercises......Page 210
6.1. Ordinary differential equations and ODE solver......Page 216
6.1.1. About numerical methods for solving ODEs......Page 217
6.1.2. The ode45 and ode15s commands for solving ODEs......Page 218
6.1.2.1. ODE solution steps......Page 220
6.1.2.2. Extended command forms of the ODE solver......Page 223
6.1.3. Supplementary commands of the ODE solver......Page 224
6.2. Solving partial differential equations with PDE solver......Page 226
6.2.1. About numerical methods for solving PDEs......Page 227
6.2.2. The pdepe command for solving one-dimensional PDEs......Page 228
6.2.3. The steps for solving a PDE with the pdepe command......Page 229
6.3. Partial differential equations with the PDE toolbox interface......Page 232
6.3.1. Solution steps in the PDE Modeler......Page 233
6.3.2. Exporting the obtained solution and mesh to the MATLAB workspace......Page 241
6.3.3. Conversion of the solution from the triangular to rectangular grid......Page 242
6.4.1.1. Heat transfer with a temperature-dependent material property......Page 243
6.4.1.2. Polymeric materials kinetics; step-growth polymerization......Page 251
6.4.2.1. One-dimensional diffusion equation with Neumann boundaries......Page 252
6.4.2.2. The diffusion Brusselator PDEs......Page 254
6.4.3.1. Two-dimensional heat transfer equation with temperature-dependent property of a material......Page 257
6.4.3.2. Two-dimensional transient diffusion equation with coordinate-dependent initial conditions......Page 260
6.5. Questions and exercises for self-testing......Page 262
6.6. Answers to selected questions and exercises......Page 267
Appendix: Characters, operators, and commands for mastering programs......Page 270
Index......Page 276
Back Cover......Page 286

✦ Subjects


LE


📜 SIMILAR VOLUMES


A MATLAB® Primer for Technical Programmi
✍ Leonid Burstein 📂 Library 📅 2020 🏛 Elsevier Inc 🌐 Polish

A MATLAB® Primer for Technical Programming for Materials Science and Engineering draws on examples from the field, providing the latest information on this programming tool that is targeted towards materials science. The book enables non-programmers to master MATLAB® in order to solve problems in ma

A Matlab Primer for Technical Programmin
✍ Leonid Burstein 📂 Library 📅 2020 🏛 Woodhead Pub Ltd 🌐 English

<p><i>A MATLAB<sup>®</sup> Primer for Technical Programming for Materials Science and Engineering </i>draws on examples from the field, providing the latest information on this programming tool that is targeted towards materials science. The book enables non-programmers to master MATLAB<sup>®</sup>

Programming Problems: A Primer for the T
✍ Bradley Green 📂 Library 📅 2012 🏛 CreateSpace 🌐 English

A complete primer for the technical programming interview. This book reviews the fundamentals of computer programming through programming problems posed to candidates at Amazon, Apple, Facebook, Google, Microsoft, and others. Complete solutions to every programming problem is provided in clear expla

MATLAB Programming for Engineers
✍ Stephen J. Chapman 📂 Library 📅 2004 🏛 CL-Engineering 🌐 English

Emphasizing problem-solving skills throughout this very successful book, Stephen Chapman introduces the MATLAB language and shows how to use it to solve typical technical problems. The book teaches MATLAB as a technical programming language, showing students how to write clean, efficient, and well-

MATLAB Programming for Engineers
✍ Stephen J. Chapman 📂 Library 📅 2019 🏛 Cengage Learning 🌐 English

Master today's MATLAB technical programming language while strengthening problem-solving skills with the help of Chapman's successful MATLAB PROGRAMMING FOR ENGINEERS, 6th Edition. You learn how to write clean, efficient and well-documented programs as you simultaneously gain an understanding of the