double - else y = FibonacciN(n-1) + FibonacciN(n-2); end

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function y = FibonacciN(n) if(n==1 || n==2) y = 1;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: else y = FibonacciN(n-1) + FibonacciN(n-2); end...
View Full Document

Ask a homework question - tutors are online