using mat lab

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

using mat lab

Post by answerhappygod »

using mat lab
Using Mat Lab 1
Using Mat Lab 1 (51.19 KiB) Viewed 26 times
- produce a list of the first 12 numbers in the Fibonacci sequence. create a matrix F which holds the first 45 numbers in the Fibonacci sequence. Find a pattern for the odd and even numbers in the Fibonacci sequence. Explain why this pattern will always work. Create a matrix called odds using odds = F(1:2:length(F)) which contains the Fibonacci numbers in the odd positions i.e. the 1st+3rd +5th +7th ..., and another matrix called evens which contains those in the even positions i.e. the 2nd+4th+6th+8th... Explain how this command produces the desired matrix. Write a similar command for evens. Use the function cumsum to create a matrix sumofodds that contains a cumulative sum of the elements in the odds matrix Create a similar matrix for the cumulative sum of the evens matrix a
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply