simulink仿真​提示出现复数情况;D​omain error. To compute complex results, make at least one input complex, e.g. 'power(complex(a),b)'.

5 ビュー (過去 30 日間)
钟 郭
钟 郭 2022 年 5 月 13 日
コメント済み: 玉为 严 2022 年 11 月 25 日
function u = fcn(x1,x2)
p=0.1;
d1_=1;
d2_=1;
l1=1;
l2=24/25;
l3=23/25;
m11=0;
g1_=(1+x1^2)^(1/50);
sigma=-1/25;
s1=1;
k=0.2;
delta=0.6;
n=2;
fi21=(l1/2)*(4-2*l2)^((2-l2)/l2)*2^((2-2*l2)/l2);
fi22=(l2/2)*(4-2*l3)^((2-l3)/l3)*2^((2-2*l3)/l3);
fi2=fi21+fi22;
z1=((abs(x1))^(1/l1))*sign(x1);
fi1=((1+(z1)^2)^(m11/2))*g1_+((1+z1^2)^(-sigma/2))*s1;
a1=-(((2+p+fi1)/d1_)^(1))*((abs(z1))^l2)*sign(z1);
z2=((abs(x2))^(1/l2))*sign(x2)-((abs(a1))^(1/l2))*sign(a1);
a2=-((((n+p-2+1+fi2)/d2_)^((1/l3)*l3)))*((abs(z2))^l3)*sign(z2);
u =(1+k)*(a2)-(sign(z2))*delta;
u是控制量,x1,x2是系统状态,请问为什么会出现这个提醒呢,检查了发现并没有复数呀?非常感谢!!!
  2 件のコメント
Joe Jones
Joe Jones 2022 年 7 月 21 日
你好,请问你这个问题解决了吗?我最近也遇到了这个问题。
玉为 严
玉为 严 2022 年 11 月 25 日
请问解决了嘛?我也是遇到这个问题

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!