I want to set up an Matlab function module to run an algorithm in Simulink.The inputs of this function require to be called from workspace.
First, all the input variables of matlab function are in the workspace. Then, I run the moule in simulink.There are the following errors:
As for the cause of the error, I think it should be : when I run the function in simulink module, as the input of the function in workspace is not called. It may be that the working space is separated from the Simulink module. If I want my algorithm to use the MATLAB function module in the Simulink to achieve real-time assignment, how to do it ?
In addition, the function module can only be run in the command window, but I want to achieve it in the Simulink function module: