MATLAB: Linking simulink from m-file

m-fileMATLABsimulink

how to link a model from a m-file? plz tel

Best Answer

To call MATLAB code from a Simulink model, use one of the three MATLAB Function Blocks available. To run Simulink models from MATLAB, use the sim command. Also see Command Line Functionality for Simulink.