(adsbygoogle = window.adsbygoogle || []).push({}); 1. The problem statement, all variables and given/known data

Modify the function so that instead of returning all n numbers, it only returns the nth number.

2. Relevant equations

3. The attempt at a solution

I'm not sure how to return only the nth number of the fibonacci sequence. Please help.

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Matlab Fibonacci problem

Have something to add?

**Physics Forums | Science Articles, Homework Help, Discussion**