It is possible to solve this by using a bus selector and bus creator after the function block. The bus creator has to have the "Output as non-virtual bus" checkbox checked.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/378996/image.png)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!