Professional Documents
Culture Documents
CORRECTNESS!!!
Efficiency
Readability
Modular reusable
Introduction
MATLAB has a large number useful of
built-in functions
We already saw some examples : like
input, disp, fprintf, zeros, ones
We will cover some in the lecture
(mathematical and statistical)
More available in the book (Ch 3).
Very important to know whats available
READ IT
Computes the
square toot of
a number
abs(x)
ceil(x)
- Use
>> help functionName
to get help about a specific function
- Search MATLAB documentation or textbook
index to find the function you need
- Table at the end of Ch3 is a good reference
2
rem(9,4)
0
rem(12,4)
1
rem(9,4)
rem(12,3)
28
29
9+20
30
10+20
median
std
var
2 rows