MATLAB Answers

How can i plot multiple plots with respect to date in matlab for forecasting problem ?

3 views (last 30 days)
NN
NN on 23 Oct 2020
Answered: Peter Perkins on 19 Nov 2020 at 4:37
How can i plot multiple plots with respect to date in matlab for forecasting problem ?
i used ,
fitPlot(testdates, [target_test op_test], error);
but gives me error
kindly advice

  2 Comments

Roshan Hingnekar
Roshan Hingnekar on 28 Oct 2020
To plot multiple plots in a single figure use the 'hold on' and 'hold off' commands.
Other work around would be, if you want to plot the variables a,b,c etc on y axis against dates,
use command :
plot(, dates[a b c]);

Sign in to comment.

Answers (1)

Peter Perkins
Peter Perkins on 19 Nov 2020 at 4:37
No reason why something like this
plot(datetime(2020,11,18:30),rand(3,13))
should not work.

  0 Comments

Sign in to comment.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!