Conversion to double from sym is not possible
Mostrar comentarios más antiguos
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');
Respuesta aceptada
Más respuestas (1)
Paulo Silva
el 27 de Ag. de 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
Categorías
Más información sobre Numeric Solvers en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!