Question: Using MATLAB Write a for loop that calculates the first 20 Fibonacci numbers. Place the result in a vector Fibo, so that Fibo(n) is the
Using MATLAB Write a for loop that calculates the first 20 Fibonacci numbers. Place the result in a vector Fibo, so that Fibo(n) is the nth number. Recall that Fibonacci sequence satisfies: F(1)=1,F(2)=1 For n>2, F(n)=F(n-1)+F(n-2) Find the value of the 100th Fibonacci number, using a while loop, and no big vectors.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
