Is it for a general purpose fraction or are you interested in Transfer Function transformations? For that purpose there is the zpk(tf) command.
If you are interested in general fractions, you can use "factor(syms)" to collect the terms in the nominator and denominator and then use "expand(syms)" to expand them manually.