Calculate the nth Fibonacci number.
Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ...
Examples:
Input n = 5 Output f is 5
Input n = 7 Output f is 13
The Hitchhiker's Guide to MATLAB
2516 Solvers
Flag largest magnitude swings as they occur
486 Solvers
215 Solvers
Matlab Basics - Create a row vector
180 Solvers
236 Solvers
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply Today