MATLAB Codegen for fminsearch without anonymous functions
Published:
Running fminsearch on a function with multiple input arguments
Code Generation from MATLAB Code is a common way to generate performant C Code for hardware applications. Only certain MATLAB functions are supported for automatic code generation. Luckily the optimization toolbox contains the function fminsearch which minimizes the target function functionToMinimize
which may either be passed as an anonymous function or a function handle.