How to convert symbolic matrix to numeric matrix ?
62 次查看(过去 30 天)
显示 更早的评论
Let's say i have the following matrix a=[a1*b1, a2-a2, b2*b2; a1+a1, b2-b2, a2*a2] if you can see that the the first row second column contains the same value but subtracted so the value need to be 0 so how can i do this. i just will try to make analysis of 5DOF of robotic arm and i have a lot of values of Angles and have cos and sin so what will be the solution ?
thanks in advance.
0 个评论
采纳的回答
Walter Roberson
2018-4-15
simplify() of the matrix will cause it to take steps to try to resolve subtractions and so on. It is not always able to notice identities so it will not always work.
But this would not convert symbolic a1*b1 to numeric.
If your entries are symbolic numbers such as sin(3/84) then if there are no symbolic variables in the matrix then double() the matrix. If there are symbolic variables then vpa() the matrix, but that will not convert the symbolic variable to numeric.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Assumptions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!