Rearrange symbolic variables in equation
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
jun wei
el 20 de Dic. de 2022
Comentada: jun wei
el 20 de Dic. de 2022
Suppose i have an equation a=b*(c-3) and i want to find a/b which is equal to (c-3). How do i code it. P.S I have tried the solve function
eqn = a == b*(c-3);
S = solve(eqn, a/b)
but the result is
S =
struct with fields:
b: [0×1 sym]
c: [0×1 sym]
0 comentarios
Respuesta aceptada
Walter Roberson
el 20 de Dic. de 2022
syms aoverb
S = solve(subs(eqn, a, aoverb*b), aoverb)
0 comentarios
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!