Why do I receive the error "Unable to determine function name..." when I try to compile a function from a toolbox using MATLAB Compiler?

I am trying to use MATLAB Compiler to create a compiled application from a MATLAB program that calls the function LSQCURVEFIT from the Optimization Toolbox. When I try to compile, I receive the following error:
ERROR: Unable to determine function name or input/output argument count for function in MATLAB file "C:\MATLAB\R2009a\toolbox\optim\optim\lsqcurvefit.m". Please use MLINT to determine if this file contains errors. ??? Error using ==> mccError executing mcc, return status = 1 (0x1).

 Accepted Answer

This error is most likely caused by a licensing issue (most probably because all concurrent licenses are already in use). Please check in MATLAB whether a license is available for the toolbox.
For example, while using LSQCURVEFIT which belongs to the Optimization Toolbox, use either:
license checkout Optimization_Toolbox
or:
which -all lsqcurvefit

More Answers (0)

Products

Release

R2009a

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!