Here's a MATLAB function that uses recursion to output the nth term of the Fibonacci sequence:
main.m176 chars12 lines
To use this function and output the nth term, simply call it with the desired value of n:
main.m77 chars2 lines
gistlibby LogSnag