Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In mathematics, the Fibonacci numbers are a sequence of numbers, where each numb

ID: 2314635 • Letter: I

Question

In mathematics, the Fibonacci numbers are a sequence of numbers, where each number is the sum of the previous two. The first two numbers of the Fibonacci sequence are 0 and 1. So, the Fibonacci sequence has the following form: 0,1,1, 2, 3,5,8,13,21,34,55,89,144...., Please write a MATLAB script, file that finds the 50th number in this Fibonacci sequence. What is the number MATLAB finds? Please write a MATLAB program that calculates the summation of the first. 50 numbers from the Fibonacci sequence 0,1,1.2.3,5.8,13,21.34,55,89,144,....

Explanation / Answer

1) program to find the fibonacci series upto 50th number

f(1) = 1;
f(2) = 1;

for i = 3: 50
f(i) = f(i-1) + f(i-2);
str = [num2str(f(50))];
  
end
disp(str)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote