Code covered by the BSD License  

Highlights from
Numerical Methods Using MATLAB, 4e

image thumbnail

Numerical Methods Using MATLAB, 4e

by

 

23 Dec 2003 (Updated )

Companion software to accompany the book "Numerical Methods Using MATLAB"

y=fib(n)
function y=fib(n)
%Generates fibonacci numbers for the program fibonacci
fz(1)=1;fz(2)=1;
for k=3:n
    fz(k)=fz(k-1)+fz(k-2);
end
y=fz(n);

Contact us