Code covered by the BSD License  

Highlights from
Using Numerical Computing with MATLAB in the Classroom

from Using Numerical Computing with MATLAB in the Classroom by Cleve Moler
M-files used in the webinar held on April 27, 2004.

fibnum(n)
function f = fibnum(n)
%FIBNUM  Fibonacci number.
%   FIBNUM(n) generates the n-th Fibonacci number.
if n <= 1
   f = 1;
else
   f = fibnum(n-1) + fibnum(n-2);
end

Contact us at files@mathworks.com