Digital Signal Processing Reference
In-Depth Information
N =
1
2
0
3
0
4
0
5
6
>> inv(N)
ans =
0.3571
0.2143
-0.1429
0.3214
-0.1071
0.0714
-0.2679
0.0893
0.1071
>> M/N
% This is the same as M*inv(N)
ans =
0.1964
0.2679
0.3214
1.4286
0.8571
0.4286
2.6607
1.4464
0.5357
>> M*inv(N)
ans =
0.1964
0.2679
0.3214
1.4286
0.8571
0.4286
2.6607
1.4464
0.5357
There are many other operators in MATLAB. For a list, type help ., that is,
the word help followed by a space then a period.
2.5
Functions
MATLAB supports functions. For greater exibility, store the functions separately,
with the same lename as the name of the function. In MATLAB, a function's local
variables are removed after the function executes. This can be frustrating if the
Search WWH ::




Custom Search