求隐函数中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.

 채택된 답변

crwfgxs
crwfgxs 2023년 5월 18일
仅供参考
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])

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

질문:

2023년 5월 18일

답변:

2023년 5월 18일

Community Treasure Hunt

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

Start Hunting!