Why the assessment shows the keyword not presented however it is in the code in the MATLAB grader?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
In MATLAB Grader, I set up the reference solution, added two assessment, one to check the keywords' presence and the other check the results. Then I run the same answer code in the learner's view and submit the answer, the assessment showed that the keywords missing and results wrong, which is not the case by the code nor the results. What happened wrong?
e.g. Code: z=sort(x,'descend')
In Assessment: 1. check if keywords used: sort, descend
2. check if the variable z is the same as in the reference solution
Even if the code are correct and z is correct, the auto-assessment shows "descend" is missing and the result is not correct.
0 Commenti
Risposte (1)
Cris LaPierre
il 28 Mar 2022
Modificato: Cris LaPierre
il 28 Mar 2022
The reason is that descend is not a function or keyword. It is an input argument to the sort function.
exist('descend')
iskeyword('descend')
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!