【求助】数值计算输出到矩阵?。
Mostrar comentarios más antiguos
syms i j
b=2*i+3j;
a=zeros(10);
for i=1:10
for j=1:10
a(i,j)=2*b;
end
end
%目的是将循环中计算的值输出到a矩阵中,产生报错如下:
从 sym 转换为 double 时出现以下错误:
错误使用 symengine (line 58)
DOUBLE cannot convert the input expression into a double array.
If the input expression contains a symbolic variable, use VPA.
能指出问题吗,感谢
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Assumptions en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!