MATLAB Answers

Fibonacci Sequence For Loop

조회 수: 20(최근 30일)
Stephen King
Stephen King 2021년 2월 16일
답변: Jemima Pulipati 2021년 2월 18일
Write a script which calculates F(20). Using a for loop. At any given time you need only store the three active members of the sequence say F_Curr, F_Old, F_Older, which you will 'shuffle' appropiately. Refer to your current count as 'F_curr'
  댓글 수: 2
Stephen King
Stephen King 2021년 2월 16일
Honestly, knowing where to start. Very new to matlab and am quite stumped by this problem.

댓글을 달려면 로그인하십시오.

답변(1개)

Jemima Pulipati
Jemima Pulipati 2021년 2월 18일
Hello,
From my understanding, you want to generate Fibonacci series using three variables inside a for loop.
The following answers from the community might be of relevance to you.

태그

제품


릴리스

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by