Essay
In the MATLAB Command Window, if you type the following commands, what would be the result?
scores = [80 90 50 70 80 60 65 95 70 40];
for i=1:1:10
if scores (i) >60
fprintf('\t %g \t\t\t\t\t PASSING\n', scores (i));
else
fprintf('\t %g \t\t\t\t\t FAILING\n', scores (i))
end
end
Correct Answer:

Verified
80 PASSING
90 PASSING
50 FAILI...View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Correct Answer:
Verified
90 PASSING
50 FAILI...
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q10: Which of the following commands are commonly
Q12: The part of the screen where you
Q25: Engineers can use MATLAB to solve a
Q26: If you define x = 2/3, and
Q27: The following matrices have already been defined
Q29: What is the MATLAB command for calculating
Q31: In MATLAB, you cannot transfer old commands
Q32: In MATLAB, the elements of the matrix
Q33: The following matrices have already been defined
Q34: The following matrices have already been defined