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 the Ports and Data Manager of the block, or simply modify the function prototype to accept multiple inputs. You can connect the output of a From (which reads from a Goto tag) block to your Embedded MATLAB Function block's input.