Convert .m file to .c file which uses lsqnonlin function
Show older comments
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)
Walter Roberson
on 11 Nov 2021
0 votes
lsqnonlin is supported for code generation as of R2020b
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!