function f = fiboLin(n)
    %finds the n-th fibonacci number by building an array
    
    % A small complication: I've indexed the fibonacci numbers 
    % starting with f0 = 0, f1 = 1, 
    % but Matlab arrays are 1-indexed. 
    fs = [0 1];
    for i = 2:n
        fs(i+1) = fs(i) + fs(i-1); % This changes the indexing here...
    end
    f = fs(n+1); % and here
end