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

3 visualizzazioni (ultimi 30 giorni)
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是系统状态,请问为什么会出现这个提醒呢,检查了发现并没有复数呀?非常感谢!!!

Risposte (0)

Categorie

Scopri di più su Simulink in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!