How to customize the way MATLAB combines an expression with a lot of symbols?
1 view (last 30 days)
Show older comments
FAISAL ALQARNI
on 24 Jul 2023
Commented: Dyuman Joshi
on 25 Jul 2023
The expression below is combined in terms of phi_dot, theta_dot and psi_dot. I want it to be combined in terms of i_B, j_B and k_B. So how to tell MATLAB what variables I want it to consider when combining the terms of an expression?![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1441188/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1441188/image.png)
0 Comments
Accepted Answer
Dyuman Joshi
on 24 Jul 2023
Use collect
I assume you already have the Symbolic Math Toolbox
2 Comments
More Answers (0)
See Also
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!