Matlab function in Simulink
3 views (last 30 days)
I have a function which is also consist of some functions.
I want to run a simulink to put a controller to control the mass flow rate.
But, when I can the matlab function from simulink, I received a lot of errors (about the optimization part and etc.).
How can I run this matlab function continiously insimulink without error?
Joel Van Sickel on 10 May 2022
This answer addresses using the 'coder.extrinsic' setting to use more complicated functions so they work with Simulink inside of the matlab function block.