Intro To Matlab
Intro To Matlab
Introduction to
Introduction to MATLAB
What is MATLAB?
2D Plotting
What is MATLAB?
MATLAB ® is a programming platform designed specifically
for engineers and scientists to analyze and design systems
and products that transform our world. The heart of MATLAB
is the MATLAB language, a matrix-based language allowing
the most natural expression of computational mathematics.
Go to https://matlab.mathworks.com/
Command window
Workspace
Current
Directory
Command window
Workspace
Current
Directory
Command window
Workspace
Basic Data & Variables
Basic Data & Variables
• MATLAB is a “weakly typed” language
• MATLAB supports various types: the most popular ones:
• 3.84 (64-bit double-default)
• ‘A’ (16-bit character)
• Most variables you’ll deal with are vectors, matrices, doubles or
chars
• Other types: comlex, symbolic, 16-bit and 8-bit integers, etc.
Basic Data & Variables
ARITHMETIC OPERATOR AND THEIR PRECEDENCE
Basic Data & Variables
MATHEMATICAL FUNCTIONS
Basic Data & Variables
VARIABLE NAME RULES:
• First character MUST be a letter
• After that, any combination of numbers, letters, and _
• Names are CASE-SENSITIVE (e.g. var1 is different from Var1)
Basic Data & Variables
PRE-DEFINED VARIABLES & KEYWORDS
Basic Data & Variables
MANAGING VARIABLES
Basic Data & Variables
SAVE/CLEAR/LOAD
Matrices & Arrays
Matrices & Arrays
CREATING AN ARRAY
Matrices & Arrays
CREATING AN ARRAY (long)
Matrices & Arrays
GENERATING VECTORS FROM FUNCTIONS
Thank you!
Do you have any questions?
_______________________
Email: [email protected]