How to plot time and date (x-axis) on predicted model?
이전 댓글 표시
I want to display time and date as shown in figure 1.After training the model i get the predicted values.The data file(.xlsx) is also attached.I want to plot Actual and Predicted values along with time on x-axis.I tried below code but didnt worked
table1=readtable('ResultsA.xlsx');
X=('Date')
Y=('Actual')
K=('Pred')
plot(table1.(X),table1.(Y));
hold on
t1=datetime(2016,11,19,04,21,0); %'dd.MM.yyyy HH:mm:ss'
t2=datetime(2016,11,20,18,00,0);
xlim([t1 t2])
plot(YPred)
hold off

채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Regression Trees에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
