You are on page 1of 1

Fibonassi in Matlab script:

clc;

close all;

clear all;

first = 0; second = 1;

for i = 0 : 7

if(i <= 1)

next = i;

else

next = first + second;

first = second;

second = next;

end

disp(next);

end

You might also like