Drag and drop the "Embedded MATLAB Function" block from library "Simulink","User-Defined Functions" to your model and copy then paste your M-Function.
Or drag and drop the "Fcn" block from the same library and put in your M-Function name.
All assume that you have or figure out the input/output argument syntax.