You can use System objects in your model to simulate in Simulink®.
Create a System object™ to be used in your model. See Define New Kinds of System Objects for Use in Simulink for information.
Test your new System object in MATLAB®. See Test New System Objects in MATLAB
Add other Simulink blocks as needed and connect the blocks to construct your system.
Run the system