Question: Convert combinat:-permute in Maple to Matlab

Hello,

 

I would like to convert this Maple code into Matlab. Matlab() gives me "Warning, the function names {`$`} are not recognized in the target language"

 

Here is the code:
for d1 from 2 to r-1 do

for l to d1 do Z[d1][l] := combinat:-permute([`$`(0, d1-l), `$`(1, l)]);

K[d1][l] := factorial(d1)/(factorial(l)*factorial(d1-l))

end do

end do; Z[2][1][1][1]; K[2][1] 

 

Thanks and cheers :)

Please Wait...