It is true that Fib_gen(N) = k(1) * Fib(N) + k(2) * Fib(N+1) for some k, but the problem is actually requesting Fib_gen(N) = k(2) * Fib(N) + k(1) * Fib(N-1) for another k. If one is still in doubt, generate the two sequences and look at the expected answer.
"Low : High - Low : High - Turn around " -- Create a subindices vector
320 Solvers
277 Solvers
367 Solvers
188 Solvers
Matlab Basics - Create a row vector
277 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!