MATLAB: Is it possible to convert a vector signal into a Bus in Simulink 7.2 (R2010a)

simulink

I see a "Bus to Vector" block in the Simulink Signal Attributes library, but I do not see a "Vector to Bus" block. Does this functionality exist?

Best Answer

There is no "Vector to Bus" functionality in Simulink. The only way to convert a vector signal into a Bus signal is to use a "Demux" block followed by a "Bus Creator" block.
As a workaround, see the attached model "Vector2Bus10a.mdl". Is uses a Masked Subsystem and callbacks in conjunction with the Simulink command line interface to convert a vector signal of any length into a virtual Bus.