Simple LSTM prediction example

This example shows the implementation of an LSTM layer used to predict the following samples of a signal based on the first few samples

You are now following this Submission

This code implements an LSTM layer as described in (Graves et al. 2013). It can predict the 7 missing samples of random 10-sample-long sequences based on the first 3 samples. It shows every step of the gradient calculations

Cite As

Lyes Demri (2026). Simple LSTM prediction example (https://www.mathworks.com/matlabcentral/fileexchange/130289-simple-lstm-prediction-example), MATLAB Central File Exchange. Retrieved .

Tags

Add Tags

Add the first tag.

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.11.0.0

Added sigmoid.m

1.0.0