MATLAB: Linking of mfile with simulink model…

mfilesimulink

How to link the block of matlab function for multiple input and output from simulink model??? It is running for single input variable only.

Best Answer

Are you talking about the "MATLAB Function" block in the new release? Like the one in this link? http://www.mathworks.com/help/toolbox/simulink/slref/matlabfunction.html
If you define your function to have multiple input arguments and multiple output arguments, those input arguments and output arguments will show up as inports and outports on the block.
Related Question