Hi,
There are two ways you can use recurrent neural networks.
If you want to use shallow network which have less complexity, you can start with layrecnet or timedelaynet to model recurrent neural networks. Here is an example for getting started with Recurrent Neural Network
If you want to use deep neural network for your problem statement, lstmLayer is useful for modelling time dependence in the sequence data. Here is an example which tells about how to design Long Short-Term Memory Networks.
Hope it helps to get started!