No License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

5.0 | 1 rating Rate this file 3 Downloads (last 30 days) File Size: 1.47 KB File ID: #6085 Version: 1.0



David Terr (view profile)


20 Oct 2004 (Updated )

GeneralizedFibonacci(n,a,b) returns the generalized Fibonacci number.

| Watch this File

File Information

For fixed integers a and b with D = a^2 + 4*b positive, the sequence U_n = GeneralizedFibonacci(n,a,b) satisfies the recurrence U_n = a U_{n-1} + b U_{n-2} with initial conditions U_0 = 0 and U_1 = 1. If a=b=1, this is the Fibonacci sequence.

Required Products Communications Blockset
MATLAB release MATLAB 6.0 (R12)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
23 Jan 2005 Srikanth Akkiraju

Contact us