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 .
Inspired by: Fibonacci.m
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!