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!
