M = sample_discrete(prob, r, c) If you do not define the input argument c you will get an error.
You may solve this problem by replacing the == in line 13 with a simple =. The output M will then have the size r x r
Log in to post a comment.