Menu

#2 Not defined argument in the function sample_discrete

open
nobody
None
5
2006-12-15
2006-12-15
rumpel22
No

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

Discussion


Log in to post a comment.