MATLAB: Do I get individual Timeseries objects when I log a muxed signal in Simulink 6.5 (R2006b)

simulink

I use a Mux block to create a vector signal. When I log this signal I do not get one Timeseries object containing all elements of my vector signal. Instead I get a TsArray containing a Timeseries for each scalar signal.

Best Answer

The ability to log a muxed signal as a single Timeseries object is not available in Simulink 6.5 (R2006b).
The reason why a TsArray is produced when logging a Mux signal is because the component signals of the Mux are not in contiguous memory. The Concatenate block outputs a contiguous array, which is why you see a TimeSeries. The Mux block does not make any guarantee about the contiguity of the output signal.
You can work around this by using the Concatenate Block from the Simulink Math Operations library instead. More information on this block can be found by executing the following command at the MATLAB prompt
docsearch concatenate