Digital Signal Processing Reference
In-Depth Information
>> result = [ 20/5, 1/4, 9/3, 16/2 ]
result =
4.0000
0.2500
3.0000
8.0000
We can specify that elements of B should be divided by corresponding elements
of A, in two dierent ways: using the backslash A.\B or the forward slash A./B.
Referring to the values of result from above, we can divide the value 1 by each
element. Also shown below is that we can divide each element of matrix C by the
value 5.
>> A.\B
ans =
0.2500
4.0000
0.3333
0.1250
>> B./A
ans =
0.2500
4.0000
0.3333
0.1250
>> 1./result
ans =
0.2500
4.0000
0.3333
0.1250
>> C/5
ans =
0
0.2000
0.4000
0.6000
0.8000
1.0000
1.2000
1.4000
1.6000
1.8000
2.0000
2.2000
Next, we divide the elements of matrix C by the corresponding elements of F. The
Search WWH ::




Custom Search