MATLAB: Converting from non-virtual to virtual bus with MATLAB Function block

simulink

When I create a MATLAB Function block with a bus as an output, I want that bus to be virtual, but it seems to automatically be set to non-virtual. How can I change this setting?

Best Answer

MATLAB Function blocks only support non-virtual buses, as noted here: 
To work around this, you can convert a non-virtual bus to virtual using a Signal Conversion Block with the "Output" parameter set to "Virtual bus", as described here: