Conversion to double from sym is not possible
이전 댓글 표시
To use command 'solve',syms * * *.
After solve equation, i want plot. but it dosen't work
Conversion to double from sym is not possible
how to change dobule to sym...
or how to use solve without syms * * * only using double.
this is my code and answer. help me guys
syms x R2 R1;
[R2,x]=solve('a*(((1-R2)/(1-R1))+1)*x^2+((b+c)*(1-R2))*x+a*(((1-R2)/(1-R1))*R1+R2)=0','(b*((1-R2)/(1-R1))*R1-c*R2)*x^2+b*((1-R2)/(1-R1))-c=0','R2,x');
채택된 답변
추가 답변 (1개)
Paulo Silva
2011년 8월 27일
Your expressions R2 and x got several symbolic variables and because of that you can't convert it to double (by using double(expression)), you must replace those symbolic variables by double values and after it use double(R2) and double(x)
doc subs %see the documentation of the subs function
카테고리
도움말 센터 및 File Exchange에서 Numeric Solvers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!