When asking questions about Matlab please make it clear if you want to use the symbolic processor (some of us think of this as an extra - since we don't get it unless we pay many £100's extra).

(The symbolics are done by Maple not by Matlab so its always odd to see such questions presented as Matlab questions)

RonL