So it seems that you are trying to compile with emlmex
to make embedded code. The error is saying that the size of the output of find
is not known, and apparently the compiler requires fixed size outputs. See this newsgroup post for one explanation.
This method of compilation seems to be obsolete -- use the MATLAB coder (codegen
command) instead:
emlmex
Generate a C-MEX file from MATLAB code.emlmex [-options] fun1 [fun2 ...]
This function is obsolete. For general purpose acceleration and code generation use
CODEGEN
.