Grading multiple different but correct answers in MATLAB Grader
Hello,
I am using MATLAB grader to develop problems for my students. For some problems, there are multiple valid equations that can be used to correctly solve the problem which yield different answers. What would be a good way to set up the autograder so that it can check the learners’ submissions against multiple possible correct solutions? I saw this submission, and I liked the use of the try-catch but I want to avoid hardcoding numbers i.e x == 2 or x == -2; I want to leave the 2 or -2 in variable form so that if I make any changes to the parameters in the problem, the values to be checked updates automatically.
Hope this questions makes sense,
PrabhakarHello,
I am using MATLAB grader to develop problems for my students. For some problems, there are multiple valid equations that can be used to correctly solve the problem which yield different answers. What would be a good way to set up the autograder so that it can check the learners’ submissions against multiple possible correct solutions? I saw this submission, and I liked the use of the try-catch but I want to avoid hardcoding numbers i.e x == 2 or x == -2; I want to leave the 2 or -2 in variable form so that if I make any changes to the parameters in the problem, the values to be checked updates automatically.
Hope this questions makes sense,
Prabhakar Hello,
I am using MATLAB grader to develop problems for my students. For some problems, there are multiple valid equations that can be used to correctly solve the problem which yield different answers. What would be a good way to set up the autograder so that it can check the learners’ submissions against multiple possible correct solutions? I saw this submission, and I liked the use of the try-catch but I want to avoid hardcoding numbers i.e x == 2 or x == -2; I want to leave the 2 or -2 in variable form so that if I make any changes to the parameters in the problem, the values to be checked updates automatically.
Hope this questions makes sense,
Prabhakar matlab grader MATLAB Answers — New Questions