changing variables in syms
4 次查看(过去 30 天)
显示 更早的评论
If I am working in syms and I say
c= I * (a * I + b * J)
How do I tell matlab that I want I * J = 0 so that it outputs
c = I * (a * I)?
0 个评论
采纳的回答
Sean de Wolski
2011-10-12
subs(c,'J',0)
since J or I has to be zero in the substitution and you want I retained.
4 个评论
Walter Roberson
2011-10-12
Franco, I * J does not express dot product. MuPad expresses dot product via the MuPad routine linalg::scalarProduct (which is not exposed at the MATLAB level.)
If you are using the Maple based symbolic engine, then Maple's dot product operator is . (period), as in maple('A . B')
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!