I am plotting a time graph, where the values are my data and indexes are my time index.
Now my x-axis is shown as index right now, looks like 0, 1, 2, 3, 4 but I wish to map it my to my time vector with something like
time(index) %output would look like 2012, 1995 etc
so how can I “normalize” my x-axis?
thanks
If your data is contained in the vector
dataandindexare the indices you want to visualize:will do. This is also explained in the MATLAB help for plot.