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

James Tursa
James Tursa 2021년 2월 16일
What have you done so far? What specific problems are you having with your code?
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일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

제품

릴리스

R2020b

태그

질문:

2021년 2월 16일

답변:

2021년 2월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by