GeneralizedFibonacci.m
by David Terr
20 Oct 2004
(Updated 22 Oct 2004)
GeneralizedFibonacci(n,a,b) returns the generalized Fibonacci number.
|
Watch this File
|
| File Information |
| Description |
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
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (1) |
| 23 Jan 2005 |
Srikanth Akkiraju
|
|
|
|
Contact us at files@mathworks.com