Here, try this:
x = 1:.01:8;
y = zeros(1,length(x));
y(x>=1 & x<2) = 1;
y(x>=2 & x<3) = 1/2;
y(x>=3 & x<4) = 1/3;
y(x>=4 & x<5) = 1/4;
y(x>=5 & x<6) = 1/5;
y(x>=6 & x<7) = 1/6;
y(x>=7 & x<8) = 1/7;
y(x>=8) = 1/8;
plot(x, y);
What difference do you see between this plot and the plot I already gave the short formula for? Do you agree that this longer code implements the criteria for Gabriel's Cake? If there is no visible difference between the output of this code and the output of my earlier code, then are both wrong or do you agree that my earlier code was correct?