I would like to have some file,, myfunc.min my MATLAB path and somehow load its contents into the MATLAB function block automatically just before starting the simulation. Thus, I can use an external editor to write these built-in functions, the version manages them separately as independent files, etc.
Is there a way to achieve this programmatically?
My initial attempt was to try to access the contents of a function block using something like get_param, but I cannot get read and write access to the code itself.
source
share