How can I extract an expression for a variable from an equation?
3 次查看(过去 30 天)
显示 更早的评论
I'm trying to get an expression for 'y' from this equation: sin(z - x) * exp((x-y) / tanz) = sin(z - y) When I express this as an equation in MATLAB, it says "Too many output arguments."
0 个评论
回答(1 个)
Karan Gill
2017-3-10
Can you post your code? And, try using the "solve" function.
To declare the equation, use "==".
sym x y z
eqn = sin(z-x) * exp((x-y)/ tan(z)) == sin(z - y)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!