I'm trying to compile a Matlab code with the coder that calls randsample(n,k,true,w) for integers n and k and a weight-vector w. I get the error message, "Variable 'edges' is not fully defined on some execution paths." which seems to be a problem within the randsample function. Any ideas what to do without touching randsample.m itself? Thanks
MATLAB: Coder, randsample: Variable ‘edges’ is not fully defined on some execution paths.
MATLABmatlab coderrandomvariable
Best Answer