MATLAB Simulink function block: Calling non-supported functions
I have code that uses the 'optimvar' and 'optimproblem' functions that I have made in a .m file and that I want to recreate for use in a Simulink model to be used in a real time model. Unfortunately, the MATLAB Function block does not support these functions. Is there a way to get it to run them? Or alternatively, is there a way to call a .m file during the running of the Simulink model? As far as I can tell, the callback functions are only really useful for starting or ending a model, not running on each step.
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.