Professional Documents
Culture Documents
Module 1:introduction To Matlab Programming
Module 1:introduction To Matlab Programming
TO MATLAB PROGRAMMING
1.1 MATLAB Basics
1.2 Arrays: Unlocking potential of MATLAB
1.3 Loops and Execution Control
1.3 MATLAB files: Scrips and Functions
1.4 Program Output and Plots
Results
Suppress echo
Variables are case-sensitive
+, -, *, /, ^
log, exp
power, sqrt
sin, cos, tan
asin, acos, atan
rem, round, ceil, floor
Special Variables
Variable
Meaning
pi
Number
eps
eps
ii
Machine
Machine precision
precision
Imaginary
Imaginary unit
unit
inf
NaN
Infinity
Not a number (e.g., 0/0)
Last displayed result
ans
end
realmax
intmax
Largest integer