MATLAB for Engineering and the Life Sciences

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

This book is a self-guided tour of MATLAB forĀ engineers and life scientists. It introduces the most commonly used programming techniques through biologically inspired examples. Although the text is written for undergraduates, graduate students and academics, as well as those in industry, will find value in learning MATLAB.

The book takes the emphasis off of learning syntax so that the reader can focus more on algorithmic thinking. Although it is not assumed that the reader has taken differential equations or a linear algebra class, there are short introductions to many of these concepts. Following a short history of computing, the MATLAB environment is introduced. Next, vectors and matrices are discussed, followed by matrix-vector operations. The core programming elements of MATLAB are introduced in three successive chapters on scripts, loops, and conditional logic. The last three chapters outline how to manage the input and output of data, create professional quality graphics and find and use MATLAB toolboxes. Throughout, biomedical and life science examples are used to illustrate MATLAB's capabilities.

Author(s): Joe Tranquillo
Series: Synthesis Lectures on Engineering, Science, and Technology
Edition: 2
Publisher: Springer
Year: 2023

Language: English
Pages: 132
City: Cham

Preface
Contents
About theĀ Author
1 Introduction
1.1 Introduction
1.2 A Short History of Computing
1.2.1 The Pre-history of Computing
1.2.2 The Early History of Digital Computing
1.2.3 Modern Computing
1.3 A History of Matlab
1.4 Why Matlab?
2 Matlab Programming Environment
2.1 Introduction
2.2 The Matlab Environment
2.3 The Diary Command
2.4 An Introduction to Scalars
2.5 Basic Arithmetic
2.5.1 Priority of Commands
2.5.2 Reissuing Previous Commands
2.5.3 Built-in Constants
2.5.4 Finding Unknown Commands
2.6 The Logistic Equation
2.7 Clearing Variables and Quitting Matlab
3 Vectors
3.1 Introduction
3.2 Vectors in Matlab
3.2.1 Creating Vectors in Matlab
3.2.2 Creating Regular Vectors
3.2.3 Special Vectors and Memory Allocation
3.3 Vector Indicies
3.4 Strings as Vectors
3.5 Saving Your Workspace
3.6 Graphical Representation of Vectors
3.6.1 Polynomials
4 Matrices
4.1 Introduction
4.2 Creating a Matrix and Indexing
4.2.1 Simplified Methods of Creating Matrices
4.2.2 Sparse Matrices
4.3 Indexing a Matrix
4.3.1 Higher Dimensional Matrices
4.4 Simple Matrix Routines
4.5 Visualizing a Matrix
4.5.1 Spy
4.5.2 Imagesc and Print
4.6 More Complex Data Structures
4.6.1 Structures
4.6.2 Cell Arrays
5 Matrix-Vector Operations
5.1 Introduction
5.2 Matrix Vector Multiplication
5.3 Basic Vector Operations
5.3.1 Vector Arithmetic
5.3.2 Vector Transpose
5.3.3 Vector-Vector Operations
5.4 Basic Matrix Operations
5.4.1 Simple Matrix Functions
5.5 Matrix-Vector Operations
5.5.1 Outer Products
5.5.2 Matrix Inverse
5.6 Other Linear Algebra Functions
5.7 Matrix Condition
6 Scripts and Functions
6.1 Introduction
6.2 Scripts
6.3 Good Programming Habits
6.3.1 Comments and Variables
6.3.2 Catching Errors and Displaying Text
6.4 Script Example-The Random Walk
6.5 Functions
6.5.1 Input-Output
6.5.2 Inline Functions
6.5.3 The Matlab Path
6.5.4 Function Naming and Size
6.6 Debugging
6.7 User Input
6.7.1 input
6.7.2 ginput
6.8 Function Example
7 Loops
7.1 Introduction
7.2 The for Loop
7.2.1 For Loops over Non-integers
7.2.2 Variable Coding
7.2.3 For Loops over a Vector
7.2.4 Storing Results in a Vector
7.3 Euler Integration Method
7.3.1 Numerical Integration of Protein Expression
7.4 The Logistic Equation Revisited
7.5 Nested Loops
7.5.1 Looping over Matrices
7.5.2 Parameter Variation
7.6 The While Loop
8 Conditional Logic
8.1 Introduction
8.2 Logical Operators
8.2.1 Random Booleans
8.2.2 Logical Operations on Strings
8.2.3 Logic and the Find Command
8.3 If, elseif and else
8.3.1 The Integrate and Fire Neuron
8.3.2 Catching Errors
8.3.3 Function Flexibility
8.4 While Loops
8.4.1 Steady-State of Differential Equations
8.4.2 Breaking a Loop
8.4.3 Killing Runaway Loops
8.5 Switch Statements
9 Data In, Data Out
9.1 Introduction
9.2 Built In Readers and Writers
9.3 Writing Arrays and Vectors
9.3.1 Diffusion Matrices
9.3.2 Excitable Membrane Propagation
9.4 Reading in Arrays and Vectors
9.4.1 Irregular Text Files
9.5 Reading and Writing Movies and Sounds
9.5.1 Sounds
9.5.2 Reading in Images
9.6 Binary Files
9.6.1 Writing Binary Files
9.6.2 Reading Binary Files
9.6.3 Headers
10 Graphics
10.1 Introduction
10.2 Displaying 2D Data
10.2.1 Figure Numbers and Saving Figures
10.2.2 Velocity Maps
10.2.3 Log and Semi-Log Plots
10.2.4 Images
10.2.5 Other 2D Plots
10.2.6 Subplots
10.3 Figure Handles
10.3.1 The Hierarchy of Figure Handles
10.3.2 Generating Publication Quality Figures
10.4 Displaying 3D Data
11 Toolboxes
11.1 Introduction
11.2 Statistical Analysis and Curve Fitting
11.2.1 Data Fits to Nonlinear Function
11.2.2 Interpolation and Splines
11.3 Differential and Integral Equations
11.3.1 Integrals and Quadrature
11.4 Signal Processing Toolbox
11.5 Imaging Processing Toolbox
11.6 Symbolic Solver
11.7 Additional Toolboxes and Resources
11.7.1 Matlab Central and Other Online Help