I have used Matlab's "Import Data" facility to import a single column of data from a file. I can plot it by doing this:
However, because each element in the imported data represents half a time step, the x axis in the plot is twice as long as I want it to be.
My solution is to create an array called "time" like this:
time = time./2;
And then plot that with the imported data plus a line representing the average of the imported data:
plot(time,myTable.TotalMt); hold on
mean_simple = mean(myTable.TotalMt,1);
There's a problem though. I have over 200000 series in the plot. It seems that each row of the array and imported table column is being plotted as a separate series. I'm not that experienced in Matlab and if anyone has advice on how to do this the right way, I would be grateful.