求隐函数中a和Ome​ga的关系曲线,但提​示Unable to convert expression into double array.求大神解答,不甚感激!。

c=1;m=5;k2=1;K=2;n=1;k1=2;F=2;
syms omega;
A=(c/(8*m))^2+(3*k2/(8*m*omega))^2;
B=-c/(4*m)*(c/(2*m)+K*omega^(n-1)*sin(n*pi/2)/(2*m))+3*k2/(4*m*omega)*((k1^2-m*omega^2)/(2*m*omega)+K*omega^(n-1)*cos(n*pi/2)/(2*m));
C=(c/(2*m)+K*omega^(n-1)*sin(n*pi/2)/(2*m))^2+((k1^2-m*omega^2)/(2*m*omega)+K*omega^(n-1)*cos(n*pi/2)/(2*m))^2;
D=(F/(2*m*omega))^2;
f =@(a,omega) A*a.^6+B*a.^4+C*a.^2-D;
fimplicit(f,[-3 0 -2 2])
警告: 更新 ImplicitFunctionLine 时出错。
Unable to convert expression into double array.

 Risposta accettata

仅供参考
c=1;m=5;k2=1;K=2;n=1;k1=2;F=2;
syms omega a
A=(c/(8*m))^2+(3*k2/(8*m*omega))^2;
B=-c/(4*m)*(c/(2*m)+K*omega^(n-1)*sin(n*pi/2)/(2*m))+3*k2/(4*m*omega)*((k1^2-m*omega^2)/(2*m*omega)+K*omega^(n-1)*cos(n*pi/2)/(2*m));
C=(c/(2*m)+K*omega^(n-1)*sin(n*pi/2)/(2*m))^2+((k1^2-m*omega^2)/(2*m*omega)+K*omega^(n-1)*cos(n*pi/2)/(2*m))^2;
D=(F/(2*m*omega))^2;
f = A*a.^6+B*a.^4+C*a.^2-D;
fun = matlabFunction(f);
fimplicit(fun,[-3 0 -2 2])

Più risposte (0)

Richiesto:

il 18 Mag 2023

Risposto:

il 18 Mag 2023

Community Treasure Hunt

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

Start Hunting!