Error using mupadengine/feval_internal Arithmetical expression expected.
8 ビュー (過去 30 日間)
古いコメントを表示
67- syms a b
68- eqns=[delta_T==rho*4*pi*r(i)*V_inf^2*(1+a)*a*dr ,delta_Q==rho*4*pi*r(i)^3*V_inf*(1+a)*b*omg*dr];
69- S=vpasolve(eqns,[a b]);
Error using mupadengine/feval_internal
Arithmetical expression expected.
Error in sym/vpasolve (line 172)
sol = eng.feval_internal('symobj::vpasolve',eqns,vars,X0);
Error in untitled (line 69)
S=vpasolve(eqns,[a b]);
1 件のコメント
Walter Roberson
2025 年 5 月 6 日
Seems okay with a naive implementation.
syms a b
delta_T = rand();
rho = rand();
i = 1; r(i) = rand();
V_inf = rand();
dr = rand();
delta_Q = rand();
omg = rand();
eqns=[delta_T==rho*4*pi*r(i)*V_inf^2*(1+a)*a*dr ,delta_Q==rho*4*pi*r(i)^3*V_inf*(1+a)*b*omg*dr];
S=vpasolve(eqns,[a b])
We would have to know the value of the various variables. I suspect one or more of them are not numeric.
回答 (1 件)
Walter Roberson
2025 年 5 月 6 日
According to a previous thread, the problem is that one of the expressions generates NaN
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!