When The following error occurred converting from sym to double: Unable to convert expression into double array
이전 댓글 표시
When I run my code, I keep getting this error: "The following error occurred converting from sym to double: Unable to convert expression into double array."
syms landa;
rho=[4 6 8 2 2 8 6]';
h=[5 8 5 7 8 2]';
T(7)=rho(7);
for i=6:-1:1
T(i)=rho(i)*(T(i+1)+rho(i)*tanh(landa*h(i)))./...
(rho(i)+T(i+1)*tanh(landa*h(i)));
end
답변 (1개)
madhan ravi
2019년 4월 26일
편집: madhan ravi
2019년 4월 26일
T=sym(zeros(size(rho))); % before the line T(7)...
카테고리
도움말 센터 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!