Conversion to double from sym is not possible
Show older comments
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');
Accepted Answer
More Answers (1)
Paulo Silva
on 27 Aug 2011
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
Categories
Find more on Numeric Solvers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!