Hi!
I have recently generated a mex function using Matlab coder. However, the mex function stops at one line of the code where 'max' is used. The 'max' is only one of the functions from eml toolbox. Below is the error message displayed: If the working dimension of MAX or MIN is variable in length, it must not have zero length at runtime.Error in eml_min_or_max>eml_extremum (line 73) eml_invariant(size(x,dim) > 0, ...Error in eml_min_or_max (line 18) extremum = eml_extremum(varargin{:});Error in max (line 16) maxval = eml_min_or_max('max',varargin{:});Error in Initialization (line 78) max_elev = max(E_32_ELEV(1,AvailPRN_init));
Thanks for your help!
Best Answer