Export the signals from Simulink by using the 'To Workspace' block. Set the save format as 'Structure With Time'. In Matlab you can then plot the data using the plot command:
plot(simout.time, simout.signals.values);
However, if you have muxed multiple signals together (such as the four in the attached image), you can use subplot to show all the various signals individually. For example:
subplot(4,1,1)
plot(simout.time, simout.signals.values(:,1));
subplot(4,1,2)
plot(simout.time, simout.signals.values(:,2));
subplot(4,1,3)
plot(simout.time, simout.signals.values(:,3));
subplot(4,1,4)
plot(simout.time, simout.signals.values(:,4));
Best Answer