MATLAB: How to offer students hints in Cody Coursework

cody courseworkMATLAB

With the introduction of Cody Coursework, I'm sometimes asked how the Test Suite can be used to offer hints for students struggling to complete coursework assignments and practice.

Best Answer

A good way to provide hints to students is to use the msg input argument with assert in your test suites. For example, you could use this syntax for assert:
assert(cond,msg)
where
msg
is a string that contains your hint.
For details and examples, visit the MathWorks documentation for assert .