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!