Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Fibonacci sequence 2 solutions submitted (max: 10) | View my solutions The fibonacci sequence 1,1,2,3,5,8,13, ... has been studied by people who study that kind
Fibonacci sequence 2 solutions submitted (max: 10) | View my solutions The fibonacci sequence 1,1,2,3,5,8,13, ... has been studied by people who study that kind of thing for over 800 years. 1. Use a for loop to create an array called fib containing the first 25 terms in the Fibonacci sequence. Do not use the built in fibonacci command in MATLAB. 2. Now create an array of length 24 called ratio that consists of the ratios of consecutive entries in the array fib: 1 2 3 5 8 1'1'2'3'5" The larger number should be in the numerator. FYI: the terms in the ratio sequence converge to 1.618033..., the golden ratio! Script 1 %Create fib array 3 %Create ratio array
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started