How do I offer students hints in Cody Coursework?

1 vue (au cours des 30 derniers jours)
MathWorks Community Team
MathWorks Community Team le 26 Fév 2014
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.

Réponse acceptée

MathWorks Community Team
MathWorks Community Team le 27 Fév 2014
Modifié(e) : MathWorks Community Team le 30 Avr 2015
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 .

Plus de réponses (0)

Catégories

En savoir plus sur Test Execution dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by