Hi Adnan,
To train a model based on time series data for forcasting purpose, one option is to consider long short-term memory networks in the Deep Learning Toolbox. Each specific problem can have its own unique challenges in terms of forcasting time series data. Here is a link to the documentation page for you to explore.
Please let us know any questions about the toolbox. Thanks.
Best wishes,
Xiangchun