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
90 PASSING
50 FAILI...
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q14: Which of the following commands are commonly
Q24: To obtain the coefficients of the second
Q25: The following matrices have already been defined
Q26: Find the corresponding MATLAB output:
>> factorial(3)
ans =
Q28: The following matrices have already been defined
Q30: In the MATLAB Command Window, if you
Q31: The following matrices have already been defined
Q32: an M-file is used to when you
Q33: Which of the following MATLAB commands would
Q34: The following matrices have already been defined
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents