search for: unidrnd

Displaying 1 result from an estimated 1 matches for "unidrnd".

Did you mean: unidad
2008 Mar 17
0
R.matlab errors and slow con
...lso, the initial examples in the help file work fine, but I encounter an error when trying to evaluate the following expression: # Create a function (M-file) on the Matlab server setFunction(matlab, " \ function [win,aver]=dice(B) \ %Play the dice game B times \ gains=[-1,2,-3,4,-5,6]; \ plays=unidrnd(6,B,1); \ win=sum(gains(plays)); \ aver=win/B; \ "); > evaluate(matlab, "[w,a]=dice(1000);") Error in list("evaluate(matlab, "[w,a]=dice(1000);")" = <environment>, : [2008-03-17 17:56:04] Exception: MatlabException: Undefined function or method ' u...