You may consider your loop in MATLAB project as the step which executes at the rate of mentioned sample time. Now you can keep the content inside the loop inside MATLAB Function block in Simulink model. you can keep other functions as nested inside the main function of the block.
Have a look at the example: