This is essentially the fibonacci function from here: http://www.mathworks.com/matlabcentral/fileexchange/5093
I just needed a version which can work on arbitrary arrays.
Michael Völker (2021). vectorized fibonacci (https://www.mathworks.com/matlabcentral/fileexchange/29991-vectorized-fibonacci), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Fibonacci.m
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!