%This is a MATLAB function file. It defines a 
% function "dummy", and within that function, another one "g"
function dummy
%comments follow the percentage sign, this is a comment!
c(1)=2.5
%set the starting point for the iteration at 2.5
function y = g(x)
y=(x^2+11)/7;
end
%the previous 3 lines define the function (x*x+11)/7
for i = 2:5
%run a for loop for 4 iterations, i=2 to i=5
c(i)=g(c(i-1))
%calculate c(2), then c(3), etc.
end
%the above end is the end of the for loop
end
%the above end is the end of the function "dummy"
