Solved

In the MATLAB Command Window, If You Type the Following

Question 30

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:

verifed

Verified

80 PASSING
90 PASSING
50 FAILI...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions