MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by mary freiling
on 18 Nov 2013

Write a MATLAB program in a script file that determines and displays the first 20 Fibonacci numbers.

*No products are associated with this question.*

Answer by Image Analyst
on 18 Nov 2013

You can look up the first 20 Fibonacci numbers anywhere to check your answer. If your code produces them, it works. Why do you need us for that?

## 1 Comment

## Yash (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/106548#comment_181301

f = zeros(n,1);