How do rewrite a variable with the symbolic toolbox?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
TG
el 4 de Jun. de 2019
Comentada: madhan ravi
el 4 de Jun. de 2019
Hi,
I have a question about the symbolic toolbox. When I use simple relations, I cannot rewrite a variable in another variable. here is an example:
syms a b
a=b+3
solve(a,b)
This leads however to -3, which means that solve assumes that a is 0? I would like an output like b=a-3. If I do this in another way using solve, solve cannot find a solution:
syms a b
a==b+3
solve(a,b)
Does anyone have an idea how I can find b=a-3? It isn't necessary to use solve, but I couldn't think of another way. Thanks in advance!
0 comentarios
Respuesta aceptada
Más respuestas (1)
Ver también
Categorías
Más información sobre Symbolic Math Toolbox 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!