Using Solve function but it keeps returning an answer without variables
显示 更早的评论
I am trying to get MATLAB to solve for v from a Kinetic Energy Equation using the solve function. Prior I had kept getting the response 0 0 in a collum. The current code produces a different output but still not the solution for v in terms of the other variables.
>> Kin = str2sym('KE = 0.5*m*v^2')
Kin =
KE == 0.5*m*v^2
>> syms KE m v
>> solve(KE,v)
ans =
Empty sym: 0-by-1
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Assumptions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!