Simple LSTM prediction example
Version 1.11.0.0 (1.89 KB) by
Lyes Demri
This example shows the implementation of an LSTM layer used to predict the following samples of a signal based on the first few samples
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 (2025). Simple LSTM prediction example (https://uk.mathworks.com/matlabcentral/fileexchange/130289-simple-lstm-prediction-example), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2023a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
