[H1,H2,H3] = plotpred(X,Y,...)
[H1,H2,H3] = plotpred(Ax,X,Y,...)
[H1,H2,H3] = plotpred(Ax,Range,X,Y,...)
X
[ tseries ] - Input data with time series observations.
Y
[ tseries ] - Input data with predictions calculated in a Kalman filter run with an 'ahead='
option.
Ax
[ numeric ] - Handle to axes object in which the data will be plotted.
Range
[ numeric | Inf ] - Date range on which the input data will be plotted.
H1
[ numeric ] - Handles to a line object showing the time series observations (the first column, X
, in the input data).
H2
[ numeric ] - Handles to line objects showing the Kalman filter predictions (the second and further columns, Y
, in the input data).
H3
[ numeric ] - Handles to one-point line objects displaying a marker at the start of each line.
'connect='
[ true
| false
] - Connect the prediction lines, Y
, with the corresponding observation in X
.
'firstMarker='
[ 'none'
| char ] - Type of marker displayed at the start of each prediction line.
'showNaNLines='
[ true
| false
] - Show or remove lines with whose starting points are NaN (missing observations).
See help on plot
and on the built-in function plot
for options available.