Problem with solve command
显示 更早的评论
syms Ax Ay Dx Dy Md F M R
syms a b c tht
% slotted arm
A = [0,0,0]; B = [a*cos(tht),a*sin(tht),0];
rAB = B-A;
FA = [Ax,Ay,0]; MA = [0,0,-M]; FR = [R*sin(tht),-R*cos(tht),0];
sumF = FA + FR
sumMA = MA + cross(rAB,FR)
sol1 = solve(sumF(1),sumF(2),sumMA(3),Ax,Ay,R)
3 个评论
John D'Errico
2016-3-9
What is the problem? Did it give an error? If so, then report the error. Did it give a result that you think to be suspect? Why do you think so? Tell us what you think is wrong.
Panchapakesan Venkataraman
2016-3-9
编辑:Walter Roberson
2016-3-9
Sarah Palfreyman
2016-3-21
编辑:Sarah Palfreyman
2016-3-21

It seems fine in the Live Editor in R2016a. If you are having an issue please do contact Technical Support at support@mathworks.com
回答(1 个)
Walter Roberson
2016-3-9
0 个投票
Use simplify() on the results.
类别
在 帮助中心 和 File Exchange 中查找有关 Code Performance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!