Introduction to MATLAB ®
Susovan Jana
Department of Information Technology
Institute of Engineering & Management, Kolkata, INDIA
Email (O): susovan.jana@iemcal.com
Email (P): jana.susovan2@gmail.com
2
What is MATLAB®?
MATLAB is an acronym of MATrix LABoratory
MATLAB®/Simulink® is a powerful software tool
─ Founders: John N. Little, Cleve Moler, Steven Bangert
It provides
─ mathematical computations
─ matrix manipulation
─ creating scripts
─ Function
─ implementation of algorithms
─ GUI design
─ Analyzing and visualizing data
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
3
Brief History of MATLAB
The first MATLAB® was not a programming language; it
was a simple interactive matrix calculator. There were no
programs, no toolboxes, no graphics. And no ODEs or
FFTs.
Mathematical Origins
─ The mathematical basis for the first version of MATLAB was a
series of research papers by J. H. Wilkinson and 18 of his
colleagues, published between 1965 and 1970 and later
collected in Handbook for Automatic Computation, Volume II,
Linear Algebra, edited by Wilkinson and C. Reinsch. These papers
present algorithms, implemented in Algol 60, for solving matrix
linear equation and eigenvalue problems.
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
4
Brief History of MATLAB
Historic MATLAB (1970- 1980)
─ MATLAB—an acronym for Matrix Laboratory—in Fortran,
with matrix as the only data type
─ an interactive matrix calculator
Commercial MATLAB (1983)
─ extended version of MATLAB in C
PC-MATLAB made its debut in December 1984 at the
IEEE Conference on Decision and Control in Las
Vegas.
Pro-MATLAB - Control System Toolbox™ (1985)
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
5
Brief History of MATLAB
Signal Processing Toolbox™- ODEs (1987)
Sparse matrices - Simulink® (1992)
Image Processing Toolbox™- Symbolic Math
Toolbox™ (1993)
Single precision, Cell arrays, Structures (1996)
Objects (1999)
Desktop, LAPACK (2000)
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
6
Brief History of MATLAB
Integer data types, Function handles, Parallel
computing (2004)
Objects improved (2008)
GPUs (2010)
New graphics system (2014)
Live Editor (2016)
Tall arrays and categorical arrays (2017)
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
7
Applications
General Applications
─ Example models illustrating general applications
Automotive Applications
─ Model and simulate automotive systems using Simulink® and other
MathWorks® products
Aerospace Applications
─ Model aerospace systems using Simulink and Aerospace Blockset™
software
Industrial Automation Applications
─ Example models illustrating industrial automation applications
Signal Processing
─ Model signal processing and communications systems using DSP System
Toolbox™ software
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
8
Applications
Physical Modeling
─ Model physical systems using Simscape™software
Complex Logic
─ Model complex logic using Stateflow® diagrams
Discrete-Event Simulation
─ Model and simulate discrete-event systems
Systems Engineering
─ Design and analyze system architecture using System
Composer™ software
Large-Scale Modeling
─ Model architecture for large models and multi-user development
teams
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
9
Installation Guide
The software of MATLAB is not free
─ User needs to buy license for personal uses
─ They also provide institutional as well as organizational
liquescence
Download Link:
https://www.mathworks.com/products/compiler/ma
tlab-runtime.html
Installation Guide:
https://in.mathworks.com/help/compiler_sdk/dotnet
/install-the-matlab-runtime.html
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
10
Default layout of MATLAB
Toolbar
Current
Folder
Command
Workspace
Window
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
11
Plot Options
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
12
Apps Options
Show more
apps
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
13
Apps Options
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
14
Options for Customizing Layout
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
15
Different Tool Boxes
Parallel Computing
─ MATLAB Distributed Computing Server
─ Parallel Computing Toolbox
Math, Statistics, and Optimization
─ Curve Fitting Toolbox
─ Global Optimization Toolbox
─ Model-Based Calibration Toolbox
─ Neural Network Toolbox
─ Optimization Toolbox
─ Partial Differential Equation Toolbox
─ Statistics and Machine Learning Toolbox
─ Symbolic Math Toolbox
─ Text Analytics Toolbox
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
16
Different Tool Boxes
Control Systems
─ Aerospace Toolbox
─ Automated Driving System Toolbox
─ Control System Toolbox
─ Fuzzy Logic Toolbox
─ Model Predictive Control Toolbox
─ Predictive Maintenance Toolbox
─ Robotics System Toolbox
─ Robust Control Toolbox
─ System Identification Toolbox
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
17
Different Tool Boxes
Signal Processing and Wireless Communications
─ Antenna Toolbox
─ Audio System Toolbox
─ Communications System Toolbox
─ DSP System Toolbox
─ LTE HDL Toolbox
─ LTE System Toolbox
─ Phased Array System Toolbox
─ RF Toolbox
─ Signal Processing Toolbox
─ Wavelet Toolbox
─ WLAN System Toolbox
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
18
Different Tool Boxes
Image Processing and Computer Vision
─ Automated Driving System Toolbox
─ Computer Vision System Toolbox
─ Image Acquisition Toolbox
─ Image Processing Toolbox
─ Mapping Toolbox
─ Vision HDL Toolbox
Test and Measurement
─ Data Acquisition Toolbox
─ Image Acquisition Toolbox
─ Instrument Control Toolbox
─ OPC Toolbox
─ Vehicle Network Toolbox
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
19
Different Tool Boxes
Computational Finance
─ Database Toolbox
─ Datafeed Toolbox
─ Econometrics Toolbox
─ Financial Instruments Toolbox
─ Financial Toolbox
─ Risk Management Toolbox
─ Spreadsheet Link
─ Trading Toolbox
Computational Biology
─ Bioinformatics Toolbox
─ SimBiology
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
20
Different Tool Boxes
Code Generation
─ Filter Design HDL Coder
─ Fixed-Point Designer
─ GPU Coder
─ HDL Coder
─ HDL Verifier
─ MATLAB Coder
─ Vision HDL Toolbox
Application Deployment
─ MATLAB Compiler
─ MATLAB Compiler SDK
─ Spreadsheet Link
Database Access and Reporting
─ Database Toolbox
─ MATLAB Report Generator
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
21
Help
Click this icon to Type here
open and select
documentation from the list
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
22
Help on sum
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
23
Using MATLAB as a Calculator
Addition
Subtraction
Multiplication
Division
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
24
Quitting MATLAB
1. By quit command
or
2. Click on MATLAB icon in the
top left corner of MATLAB and
select Close option
or
3. Press Alt+F4
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
25
Reference Book
MATLAB: Easy Way of Learning
─ By S. Swapna Kumar, S. V. B. Lenina · 2016
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA
26
Susovan Jana, Department of Information Technology, IEM, Kolkata, INDIA