function y=fibonacci(n)
%---------------------------------
% This function generates the n-th 
% Fibonacci number
%--------------------------------- 
z=zeros(n,1);
z(1)=1;
z(2)=1;
for(i=3:n)
    z(i)=z(i-2)+z(i-1);
end
y=z(end);
end
