The code is quite similar to the code that I submitted for mackey glass series prediction (https://www.mathworks.com/matlabcentral/fileexchange/61017-mackey-glass-time-series-prediction-using-least-mean-square--lms-). The main difference is that in testing phase it utilizes the output generated by the filter itself (feedback) to predict next outcome. In this way you can generate data for N future values.
Shujaat Khan (2022). Extrapolation of a sinusoidal signal Using Least Mean Square (LMS) (https://www.mathworks.com/matlabcentral/fileexchange/61174-extrapolation-of-a-sinusoidal-signal-using-least-mean-square-lms), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!