This function generates a fan chart. A fan chart aims to visualize the uncertainty that surrounds a sequence of point forecasts.
The function can be provided with a series of density forecasts and historical data.
Fan charts are used by central banks (e.g. the Bank of England) to visualize their forecasts for price inflation.
Marco B. (2020). Fan chart (https://www.mathworks.com/matlabcentral/fileexchange/27702-fan-chart), MATLAB Central File Exchange. Retrieved .
Accomp. function has been added: dates can now be added to the horizontal axis of the chart