function f=fibo(n) if n==0 f=0; elseif n==1 f=1; else f=fibo(n-1)+fibo(n-2); end end