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

카테고리

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

질문:

2019년 4월 26일

댓글:

2019년 4월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by