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')))