Updated 11 Apr 2018
Linear Feedback Shift Register
It includes 3 different versions, 1st one to check the properties, 2nd one, if you are interested in storing all the states of LSFR and 3rd, faster
You can check the examples at https://github.com/Nikeshbajaj/Linear_Feedback_Shift_Register
Nikesh Bajaj (2023). Nikeshbajaj/Linear_Feedback_Shift_Register (https://www.mathworks.com/matlabcentral/fileexchange/29119-nikeshbajaj-linear_feedback_shift_register), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired: LFSR - Linear Feedback Shift Register, PSEUDORANDOM NUMBER GENERATOR - SHIFT REGISTER
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.
Now LFSR is available as toolbox, in addition m file includes instruction to use it as well as more friendly to give you option to avoid verification process