hi, i have reseach all over the internet for hours, tryed many ways, i found no solutions. Any help would be appreciated. please get back to me asap.
3. The Lucas sequence is similar to the Fibonacci sequence but is defined as
follows: L(0) = 2, L(1) = 1, and L(k) = L(k?1)+L(k?2) for k ³ 2.
a Write a MATLAB function to generate the first n+1 terms of the Lucas
sequence. Note that the Lucas series is indexed from 0. Because MATLAB
arrays and vectors are indexed from 1, the n+1 element in a MATLAB
vector must be the nth term of the Lucas series, L(n).
b What is the ratio between L(k)/L(k–1) as k becomes large? (i.e. around 15)
c The first 21 terms of the Fibonacci series are
F = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597,
2584, 4181, 6765]
Remember that MATLAB arrays and vectors are indexed from 1 so that
(like the Lucas series) F(n) is the n+1 term in a MATLAB vector listing the
Fibonacci series given above.
Verify for n = 2:20 that L(n) = F(n–1)+F(n+1),
Verify for n = 2:20, that 5F(n) = L(n–1)+L(n+1).
Verify for n = 2:10 that F(2n) = F(n) L(n).
In these three tests use MATLAB logic operator == .
matlab help needed!!! Watch
- Thread Starter
- 01-12-2010 18:15
- 01-12-2010 20:28
There are lots of tutorials on the Mathworks website that give a beginner's guide to MATLAB.
The stuff you've been asked to do here is quite basic.