Higher order transfer function precision issue
Hi,
I’m creating a transfer function at higher order (to the degree of 80) by multiplication of many 2nd order transfer function. However, when I get this final transfer function, the result returned is NaN.
I suspect it is due to the precision error in MATLAB, and tried to use vpa commend. It didn’t solve the problem by giving errors.
Could anyone advise me a solution please? thank you.
Steven
num_bnotch=vpa([1 4*0.20*pi*19.5 (2*pi*20.04)^2]);
den_bnotch=vpa([1 4900.88 1.5855e+004]);
bnotch=tf(num_bnotch,den_bnotch)
??? Error using ==> tf.tf at 251
The values of the "num" and "den" properties must be row vectors or cell arrays of row vectors, where each vector is
nonempty and containing numeric data. Type "ltiprops tf" for more information.Hi,
I’m creating a transfer function at higher order (to the degree of 80) by multiplication of many 2nd order transfer function. However, when I get this final transfer function, the result returned is NaN.
I suspect it is due to the precision error in MATLAB, and tried to use vpa commend. It didn’t solve the problem by giving errors.
Could anyone advise me a solution please? thank you.
Steven
num_bnotch=vpa([1 4*0.20*pi*19.5 (2*pi*20.04)^2]);
den_bnotch=vpa([1 4900.88 1.5855e+004]);
bnotch=tf(num_bnotch,den_bnotch)
??? Error using ==> tf.tf at 251
The values of the "num" and "den" properties must be row vectors or cell arrays of row vectors, where each vector is
nonempty and containing numeric data. Type "ltiprops tf" for more information. Hi,
I’m creating a transfer function at higher order (to the degree of 80) by multiplication of many 2nd order transfer function. However, when I get this final transfer function, the result returned is NaN.
I suspect it is due to the precision error in MATLAB, and tried to use vpa commend. It didn’t solve the problem by giving errors.
Could anyone advise me a solution please? thank you.
Steven
num_bnotch=vpa([1 4*0.20*pi*19.5 (2*pi*20.04)^2]);
den_bnotch=vpa([1 4900.88 1.5855e+004]);
bnotch=tf(num_bnotch,den_bnotch)
??? Error using ==> tf.tf at 251
The values of the "num" and "den" properties must be row vectors or cell arrays of row vectors, where each vector is
nonempty and containing numeric data. Type "ltiprops tf" for more information. transfer function, vpa, precision MATLAB Answers — New Questions