masdeseiscaracteres
7/12/2014 - 7:22 PM

Generating restricted integer compositions with Matlab calling MuPad

Generating restricted integer compositions with Matlab calling MuPad

% Example
feval(symengine, 'combinat::compositions',4,'Length=3','MinPart=1','MaxPart=3')

% Show source code
sprintf(char(feval(symengine, 'expose', 'combinat::compositions')))