Error with basic tf function when num and den data are enormous
이전 댓글 표시
I have trouble with the tf function when I write the following code:
G = -G0*((1+Wz1/s)*(1+s/Wz2))/((1+s/Wp1)*(1+s/Wp2));
[n,d]=numden(simplify(G));
numtf = coeffs(n,s);
dentf = coeffs(d,s);
num = [numtf(1,2) numtf(1,1)];
den = [dentf(1,3) dentf(1,2) dentf(1,1)];
H = tf(num, den);
The error is as follows:
??? Error using ==> tf.tf>tf.tf at 293 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 "help tf.num" or "help tf.den" for more information.
I suppose that my num and den arrays are too big, like;
num =
[ -10255136766097329602890536050147357991662675558400, -459832128482391426299493586726723482988006929678529725]
den =
[ 155212291532809910445709165852975169536, 54585058686258589305546999447174307622420480, 4799118359695855171743692191395565126163208601600]
Could you please help to solve the problem?
채택된 답변
추가 답변 (2개)
Jason Parekh
2021년 11월 5일
0 개 추천
clc
num=(1);
dem=[1 3 10 0];
Ls=tf(num,dem);
relocus(Ls)
clc
Error in Matlab (line 4)
Ls=tf(num,dem);
댓글 수: 1
num=(1);
dem=[1 3 10 0];
Ls=tf(num,dem);
rlocus(Ls)
.
카테고리
도움말 센터 및 File Exchange에서 Dynamic System Models에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
