MATLAB: Call M File In SIMULINK Model

matlab codersimulinksimulink m file

I want to call M File In SIMULINK Model. I take one x constant , One Matlab Fnc , Matlab Fnc Output to display .
I want to x value as input in M file function and their output display in y varibale.
How can i do it ?

Best Answer

You can use the Interpreted MATLAB function block for this; it can be found under the User defined functions category in the Simulink library browser.
Related Question