Blog posts

2024

2021

Nice To Know

less than 1 minute read

Published:

Docker Nice to know

MATLAB Codegen for fminsearch without anonymous functions

less than 1 minute read

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.