Solving equations that are first parametrically solved
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
farzad
el 5 de Dic. de 2014
Comentada: farzad
el 7 de Dic. de 2014
Hi All
if I solve a set of equations first parametrically and I end in something like : C = a^2 + 2 * b +1/R
and then I want to put numbers in a and b and R and get a result for C , how do I do that ?
I mean the code is initiated with
syms a , b , R
0 comentarios
Respuesta aceptada
Mischa Kim
el 7 de Dic. de 2014
Farzad, you want to use the subs command
syms a b R
C = a^2 + 2 * b + 1/R;
C_num = subs(C,{a,b,R},{1,2,3})
C_num =
16/3
Más respuestas (0)
Ver también
Categorías
Más información sobre Conversion Between Symbolic and Numeric en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!