function output = fibonacci( n )
% Computes the first n values of the Fibonacci's series

output=zeros(1,n);  % Generate a row array of n elements set to 0
output(2)=1;        % Set the second Fibonacci number
for i=3:n
    output(i)=output(i-1)+output(i-2);  % Compute the next Fibonacci number from the previous numbers
end

