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
155 Downloads
Updated 31 May 2023

View License

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 Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.11.0.0

Added sigmoid.m

1.0.0