% create an array with Fibonacci numbers.  Add element from the sequence

% until you get to the first one that is greater than 1000000 (include the

% first one that is greater than 1,000,000

fib = [0, 1];

while fib(end)<=1000000

    fib = [fib fib(end)+fib(end-1)];

end