I want to plot price data with the corresponding date on the x axis.
figure(1);Datum = table2array(Dates(p_date_c:p_date_c+z,1));plot(Datum, pricedata)xlabel('Time')ylabel('Total Return')
The "Datum" is in datetime format and ranges from 31-Dec-2019 to 31-Dec-2020, and so do the pricedata! pricedata and Datum has the same length. But why does the plot starts in Oct-2019, and not Dec-2019?
Thanks in advance
Best Answer