This is the function it is calling by the way
function FakeDeansList = almost (studentname, semgpa, cgpa, i)
almost = 0;%sets value for almost
FakeDeansList = {};
if semgpa >= 2.9 && semgpa < 3
almost = almost +1;
else
almost = 0;%returns almost to starting value
end
FDL.studentname = studentname;%these commands put the inputs for each respective section into the structure
FDL.semgpa = semgpa;
FDL.cgpa = cgpa;
FDL.almost= almost;
if FDL. almost == 1
if i==1
FakeDeansList{i}= FDL. studentname;
i= i+1;
almost = 0;%returns almost to starting value
else
repeat=i;%sets the value of "repeat" in order to repeat this function until i=repeat
i=1;
FakeDeansList{i}=FDL.studentname;
i=repeat;
almost=0;%returns almost to starting value
end
else
almost=0;%if i does not equal one the function will return almost to its starting value and the function will
end
end