フィルターのクリア

How do I offer students hints in Cody Coursework?

1 回表示 (過去 30 日間)
MathWorks Community Team
MathWorks Community Team 2014 年 2 月 26 日
編集済み: MathWorks Community Team 2015 年 4 月 30 日
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.

採用された回答

MathWorks Community Team
MathWorks Community Team 2014 年 2 月 27 日
編集済み: MathWorks Community Team 2015 年 4 月 30 日
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 .

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTest Execution についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by