MATLAB: How to read “Go To” tags in embedded matlab function in Simulink
simulink
How can I read "Go To" tags in embedded matlab function in Simulink? Can I have 2 inputs to an embedded matlab function in Simulink?
Best Answer
Yes, you can have any number of inputs to your Embedded MATLAB Function block. You can either add additional inputs using thePorts and Data Manager of the block, or simply modify the function prototype to accept multiple inputs. You can connect the output of aFrom (which reads from a Goto tag) block to your Embedded MATLAB Function block's input.
Yes, you can convert your inputs to parameters (whose names must match that of the workspace variables). You simply need to change the "Scope" from Input to Parameter on thePorts and Data Manager.
Best Answer