MATLAB: Error for function permutation with repetition.

permutation with repetitionundefined function or variable 'permn'

Dear all,
I am using matlab 2016b and try to find al the permutations with repetition. But it gives me an error saying: Undefined function or variable 'permn'.
So I wonder, what is missing in is my code is there another function/code needed for my version of matlab?
This is the code:
%Find all possible prob
I=0:200;
M = permn(I,3);
Can I have some feedback please?
Thank you in advance

Best Answer