I'm trying to run a matlab function using function block inside a SIMULINK model but I get multiple errors. Since I have defined global variables in this function, I get this error:
"Global declaration not resolved to a Data Store Memory block registered via the Ports and Data Manager."
I don't get any errors for running this function in MATLAB. How can I resolve this?
Thanks for any help!