| MATLAB Central > MATLAB Newsreader > fibonacci numbers |
|
|
|
i have to write a function that generates the fibonacci sequence with out using loops. the length is specified by the user.if a single number is specified the sequence should be generated for numbers -Fn...Fn and if twoarguments ar given the sequence should run from Fm...Fn. and the zeroth term assume 0 is F0. Can anyone help me?? |
|
"Maria " <mariaki16@hotmail.com> wrote in message <gfv1n2$r4j$1@fred.mathworks.com>... |
|
no becouse we don't know the array.is given by the user.so i have to create a formula for a random array...the golden radio is recomented to do the formula(http://www.mathworks.com/moler/intro.pdf) |
|
"Maria " <mariaki16@hotmail.com> wrote in message <gfvju6$8er$1@fred.mathworks.com>... |
|
"Matt" <mjacobson.removethis@xorantech.com> wrote in message <gfvltu$qpd$1@fred.mathworks.com>... |
|
yeah thats right but i've got a problem inputing a single number its have to outpout [-x:x]insteat of that i have this: |
|
"Maria " <mariaki16@hotmail.com> wrote in message <gfvn5a$edd$1@fred.mathworks.com>... |
|
oh tnx !!!! great!!! is working;) |
|
"Matt" <mjacobson.removethis@xorantech.com> wrote in message <gfvno1$mhd$1@fred.mathworks.com>... |
|
"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message <gfvpnp$6tp$1@fred.mathworks.com>... |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
Contact us at files@mathworks.com
