Biomedical Engineering Reference
In-Depth Information
R
0
0
3.2500
10.0000
3.5000
3.2500
Symbolically, this result is written as
3
2
1
2 x
1
4 þ
3
:
25
x
þ
10
x
þ
3
:
5
x þ
3
:
25
x
5
þ
2
x
4
þ
9
x
3
þ
8
x
2
4
x þ
5
2
To illustrate a simpler example with no remainder, divide
x
2
x þ
1by
x
1, giving
>>
S
¼
[1,
2, 1];
>>
T
¼
[1,
1];
>>
[Q, V]
¼
deconv(S, T)
Q
1
1
V
¼ 000
The result is
x
1.
EXAMPLE PROBLEM A.5
Consider the following equation:
3
(1600
3
x Þ
x
500
¼
27
3
x
x
Find
x
given that it must be between 0 and 500.
Solution
We use “format long” in this solution so that enough significant digits are carried through. This
is necessary because ordinarily MATLAB evaluates expressions with “format short”. First evalu-
ate (1600
) 3 as follows:
3
x
>>
format long
>>
y
¼
[
3 1600];
>>
r
¼
conv(y, y);
>>
conv(y, r)
which returns
w
w
¼
1.0e
þ
009 *
0.00000002700000
0.00004320000000
0.02304000000000
4.09600000000000
) 3 . Notice that “1.0e
where “w” is the expression (1600
3
x
þ
009” multiplies all of the coefficients
in the previous polynomial.
We cross-multiply to eliminate the denominator term on the right side as follows:
>>
1 500];
and multiplying w * z is done by another “conv”
z
¼
[
Continued
Search WWH ::




Custom Search