Yes of course it is possible !
If you want to load data, for example, you can use the matlab function block.
If you want to connect the function to other simulink blocks, you need to use the s-function block.
It is really useful to perform user-defined actions, like real-time animations for...