I'm trying to run this script but I keep getting this error mensage:
??? Input argument "x" is undefined. Error in ==> fibonacci at 8
Could anybody help me? Here is the code:
function y = fibonacci(x)if x == 0 y = 0elseif x == 1 y = 1else y = fibonacci(x-1) + fibonacci(x-2)end
Best Answer