I configured the data from Simulink to be saved as Structure with time on workspace, but I'm getting an error when I try to plot the variable.
plot(X.time, X.signals.values)
X is how I named the scope data. And this is the error I get
Error using plot
Data must be a single matrix Y or a list of pairs X,Y.
Is there some other configuration I should make on Simulink for this to work?
I have the 2017 version of Matlab