Provide feedback when answering correctly in MATLAB Grader

1 view (last 30 days)
I am trying to implement some additional feedback to the students when they correctly pass an assessment test in MATLAB Grader.
The default "feedback" functionality is unfortunately on incorrect answers only.
I was advised to use in the "MATLAB code" for testing the students answers the
assert( cond , 'feedback message' )
command. But this command triggers the 'feedback message' only when the condition cond is false, for which MATLAB Grader considers the assessment test as not passed (red cross obtained when running the test in MATLAB Grader).
How to provide additional feedback to students when successfully passing a test?

Accepted Answer

Cris LaPierre
Cris LaPierre on 12 Oct 2022
As you have observed, feedback is only shown to students if the assessment test is incorrect. The only feedback they will see is what is written in the 'Feedback on Incorrect' field, and any message included in assert, error, or assessVariableEqual when that test is False. All other outputs created inside an assessment test are 'swallowed'.
If this is a feature you would like, I recommend submitting a suggestion to MathWorks here (Create Service Request > Techinical Support).

More Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!