Simulink has a module called "Matlab Function," which allows you to create a custom function in a Simulink flow diagram.
I implemented a simple function in a Simulink Matlab Function module. My function contains a call to Matlab's built-in rms()
. When I run the Simulink model, I get the following error:
The function 'rms' not supported for standalone code generation
If I remove rms
from my Matlab Function in the Simulink model, the error goes away and the model runs flawlessly.
Questions:
- Is there a way to use Matlab's
rms
in Simulink? - Are there many other native Matlab calls that can't be used inside Simulink?