Convert .m file to .c file which uses lsqnonlin function

I am working on the MATLAB 2018a version. I am using the LM algorithm in my code and the code works fine. I am trying to convert this .m file to. c file using MATLAB coder. But getting an error: lsqnonlin is not supported for code generation
To resolve the issue I have used the below link
The sample code here is also giving me the same error. Kindly help

Answers (1)

lsqnonlin is supported for code generation as of R2020b

Categories

Find more on MATLAB in Help Center and File Exchange

Asked:

on 11 Nov 2021

Answered:

on 11 Nov 2021

Community Treasure Hunt

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

Start Hunting!