MATLAB: I don’t understand

92%acceptanceadmittanceeligiblegradeshomeworkif statement

hi,
i was asked to write a simple function for home work :
this was my code:
function [admit]=eligible(v,q)
avg=(v+q)/2;
if (avg>=92) && (v>88) && (q>88)
admit=1;
else
admit=0;
end
end
and i don't understand why i got this error message :
please advise what is the problem.
thank's

Best Answer

Replace 1 with ~0 and 0 with ~1.