Clear Filters
Clear Filters

How to collect a fraction in a certain equation?

2 views (last 30 days)
Suppose i have this equation :
>> syms a b c d e
>> f=(a/3)+(b/3)+(c/3)+(d/3)+(e/3)
f =
And i need some command to collect term. And i wish it will displays :
f =
Is it possible to do this? How?
Thanks in advance!

Accepted Answer

Chuguang Pan
Chuguang Pan on 12 Dec 2019
Hi Fahmy.
I try the matlab function factor, but it get the result as following.
syms a b c d e
F=[1/3,a+b+c+d+e]. maybe exist another method.

More Answers (0)


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!