Sorry here is an easier version to read
 y=load('Class19_survey.txt');
ag=0;
ne=0;
dis=0;
for k=1:length(y)
    if y(k)>=4
        ag=ag+1;
        fprintf('\nThe number of people who agree is\n',ag)
    elseif y(k)==3
        ne=ne+1
        fprintf('\nThe number of neutral responses is\n',ne)
    else  y(k)<=2
        dis=dis+1
       fprintf('\nThe number of disagree responses is\n', dis)
    end 
end



