Fibonacci Sequence For Loop

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 Commenti

James Tursa
James Tursa il 16 Feb 2021
What have you done so far? What specific problems are you having with your code?
Honestly, knowing where to start. Very new to matlab and am quite stumped by this problem.

Accedi per commentare.

Risposte (1)

Jemima Pulipati
Jemima Pulipati il 18 Feb 2021

0 voti

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.

Categorie

Scopri di più su Programming in Centro assistenza e File Exchange

Prodotti

Release

R2020b

Tag

Richiesto:

il 16 Feb 2021

Risposto:

il 18 Feb 2021

Community Treasure Hunt

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

Start Hunting!

Translated by