The MATLAB function block is not able to create a bus.
We strongly suggest the use of the Embedded MATLAB function that allows better performances and code flexibility. If you can express your doubts regarding the use of the Embedded MATLAB function we may provide you further assistance.
This command allows you to use any function (not necessarily from Embedded MATLAB subset). This reduces the performance (and is not working for code generation) but allows you to use all MATLAB features.
Thanks for the response! I came to the same conclusion and used eml.extrinsic command. Although from your answer it seems that I can't use it for my application. The simulink code i'm working on essential goes into an embedded target.