How many Fibonacci numbers? - MATLAB Cody - MATLAB Central

Problem 44481. How many Fibonacci numbers?

Difficulty:Rate

Find the number of unique Fibonacci numbers (don't count repeats) in a vector of positive integers.

Example:

 x = [1 2 3 4 5 6 7 8 8]
 y = 5

Solution Stats

29.96% Correct | 70.04% Incorrect
Last Solution submitted on Jun 27, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
3
6

Problem Recent Solvers810

Suggested Problems

Problem Tags

Community Treasure Hunt

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

Start Hunting!