MATLAB: How to assess solutions with multiple correct answers in MATLAB Grader

distance_learning

I recently received the following question about Grader assessments:
"I wasn't able to test a variable when there are two possible answers. So we have situations where depending on what assumptions the student makes they can have two possible correct answers for a variable. Both are correct as you can assume either way but matlab grader would only let me have one variable as correct."

Best Answer

You could consider using MATLAB code to develop a custom Test. The assessment code can create new variables that you could test with conditional statements. For example: