Conversion to double from sym is not possible
Afficher commentaires plus anciens
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');
Réponse acceptée
Plus de réponses (1)
Paulo Silva
le 27 Août 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
Catégories
En savoir plus sur Numeric Solvers dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!