Skip to main content
main-content
Top

About this book

Apply MATLAB programming to the mathematical modeling of real-life problems from a wide range of topics. This pragmatic book shows you how to solve your programming problems, starting with a brief primer on MATLAB and the fundamentals of the MATLAB programming language. Then, you’ll build fully working examples and computational models found in the financial, engineering, and scientific sectors. As part of this section, you’ll cover signal and image processing, as well as GUIs.
After reading and using Practical MATLAB and its accompanying source code, you’ll have the practical know-how and code to apply to your own MATLAB programming projects.

What You Will LearnDiscover the fundamentals of MATLAB and how to get started with it for problem solvingApply MATLAB to a variety of problems and case studiesCarry out economic and financial modeling with MATLAB, including option pricing and compound interestUse MATLAB for simulation problems such as coin flips, dice rolling, random walks, and traffic flowsSolve computational biology problems with MATLABImplement signal processing with MATLAB, including currents, Fast Fourier Transforms (FFTs), and harmonic analysisProcess images with filters and edge detectionBuild applications with GUIs
Who This Book Is For
People with some prior experience with programming and MATLAB.

Table of Contents

Chapter 1. Introduction to MATLAB

Abstract
MATLAB is an abbreviation for the expression Matrix Laboratory. It has been widely used in many kinds of applications and fields of study. MATLAB is a high-level language, the reputation of which has been increasing over time. Since its first use in 1970 by Cleve Moler, a famous mathematician and cofounder of MathWorks, Inc. (the owner of MATLAB), it has shown huge advancement and new tools have been added in the new versions released twice a year.
Irfan Turk

Chapter 2. Fundamentals of MATLAB Language

Abstract
In this chapter, you will learn the basic concepts of algorithms, M-files, selection structures, controlling mechanisms of the MATLAB language, and user-defined functions.
Irfan Turk

Chapter 3. Economic Modeling

Abstract
In this chapter, new functions that are used in the examples are first defined. Following that, simple and compound interest, percentage change, and cost, revenue, and profit topics are examined in different sections. Before the examples are presented, necessary formulas used in the solutions are explained in each section.
Irfan Turk

Chapter 4. Numerical Methods

Abstract
In this chapter, I present how to solve problems using numerical techniques. First, interpolation and extrapolation methods are introduced. Next, curve fitting and root finding are explained. Finally, numerical integration and numerical differentiation are covered.
Irfan Turk

Chapter 5. Applications in Simulation

Abstract
In this chapter, we first cover how to generate random numbers. Then, flipping a coin, rolling a pair of dice, random walking, and traffic flow topics are covered. In each section, I provide illustrations of the relevant programming ideas and explain them when necessary.
Irfan Turk

Chapter 6. Basic Statistics and Data Analysis

Abstract
This chapter begins with a brief discussion about basic statistical functions used in MATLAB. After that, sorting, searching, and processing data with Microsoft Excel files are presented.
Irfan Turk

Chapter 7. Data Visualization and Animation

Abstract
MATLAB provides very powerful techniques to visualize data. In this chapter, we look at how to visualize data and create animations. Visualizing data was already touched on in Chapter 1. Therefore, the animation techniques are emphasized in this chapter. Animations can be created by using three basic techniques in MATLAB. These methods can be summarized as updating coordinates, applying transformation to objects, and creating movies.
Irfan Turk

Chapter 8. Computational Biology

Abstract
Computational biology is a division of applied science that combines application of theoretical methods, mathematical modeling, and computer science to solve biological, ecological, social, and behavioral problems. In this chapter, we see some of its applications written with MATLAB code. Bacterial growth and population models are illustrated with a few examples. Then, topics including host–parasitoid models, bioinformatics, predator–prey models, and epidemic models are presented.
Irfan Turk

Chapter 9. Signal Processing

Abstract
Signal processing is one of the subfields of electrical engineering that analyzes, modifies, and operates information from all sources of data in the universe. A signal in signal processing is an electrical or electromagnetic current that relocates data from one device to another. Everything in the cosmos, such as sounds, images, and videos, can be described as a signal in the form of a wave. Signals can be represented as functions of one or more independent variables mathematically.
Irfan Turk

Chapter 10. Image Processing

Abstract
MATLAB provides very powerful tools to work with graphics and image files, as well as for manipulating sounds, audio, and video files. This chapter deals with different topics related to image processing. At the beginning, I present the types of images. That is followed by discussions on converting image types and formats, operations on images, image enhancement, image restoration, color processing, image segmentation, and mathematical morphology.
Irfan Turk

Chapter 11. Introduction to Sound Processing

Abstract
It is possible to record, listen to, or manipulate sounds or audio files in MATLAB. This chapter introduces some basic features that are used with audio files, including using sine function as a sound. Using the Audio toolbox and other toolboxes, sophisticated illustrations can be achieved. In this chapter, though, the examples presented take into account that the reader might not have these toolboxes installed on MATLAB.
Irfan Turk

Chapter 12. Applications with Graphical User Interfaces

Abstract
A graphical user interface (GUI) can be created in three different ways. The first method is to create a GUI programmatically. In this instance, commands are usually written directly in the editor. The second way is to use the graphical user interface development environment (GUIDE). The third way is to create the GUI via the App Designer. In this chapter, we cover how to create GUIs in all of these cases, and illustrate how to program applications with them.
Irfan Turk
Additional information