MATLAB: Plot of logged simulation data automatically opens Simulation Data Inspector – how to disable

MATLABplotsimulation data inspectorsimulink

My setup:
out = sim('modelname'); % simulate my model
figure,plot(out.logsout{1}); % plot the first of the logged signals
What happens is:
  • A figure window is opened (because of figure,)
  • Simulation Data Inspector is opened
  • The plot is shown in the Simulation Data Inspector.
How can I disable this?
I know there is the possibility in sdi to 'Take a snapshot' and export the signals to matlab figures, but this is quite annoying to do repeatedly.
Thank you in advance!

Best Answer

Changing the line slightly solved the issue:
figure,plot(out.logsout{1}.Values);
Related Question