diary off
x = [1]./[1:1:10]

x =

  Columns 1 through 4

    1.0000    0.5000    0.3333    0.2500

  Columns 5 through 8

    0.2000    0.1667    0.1429    0.1250

  Columns 9 through 10

    0.1111    0.1000

x

x =

  Columns 1 through 4

    1.0000    0.5000    0.3333    0.2500

  Columns 5 through 8

    0.2000    0.1667    0.1429    0.1250

  Columns 9 through 10

    0.1111    0.1000

y(1)=0

y =

     0

y(2)=1

y =

     0     1

erg2
for k=1:1:8
   y(k+2)=y(k)+y(k+1);
 end
y

y =

  Columns 1 through 7

     0     1     1     2     3     5     8

  Columns 8 through 10

    13    21    34

eg=x*y'

eg =

   11.2679

eg

eg =

   11.2679

diary off
