In a complex Simulink model, I want to export data from many different signals. I would like to be able to create a bus with all of the relevant signals in my model and store the bus signal as a structure in the MATLAB workspace with the signal names and hierarchy preserved so that it is easy to analyze.
I have tried using the To Workspace block and an Outport block but these flatten the signal into an array when stored in the base workspace.
Best Answer