【求助】数值计算输出到矩阵?。
이전 댓글 표시
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.
能指出问题吗,感谢
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Assumptions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!