assessFunctionPresence
Check for presence of specific functions or keywords in the submission
Syntax
Description
assessFunctionPresence(
checks a script-type solution for the presence of functions or keywords in the
specified list mustUseFunctions
)mustUseFunctions
. If the submission does not
contain one or more of the functions or keywords listed, the learner receives a
default feedback message:
The submission must contain the following functions or keywords:
<name1>, <name2>,
...<name
n
>
assessFunctionPresence(
lets you display specific feedback to the learner if the solution does not pass the
conditions in the assessment test. Use this syntax for script-type problems.mustUseFunctions
,'Feedback',learnerFeedback
)
assessFunctionPresence(
checks a function-type solution for the presence of functions or keywords in the
specified list mustUseFunctions
,'FileName',fileName
)mustUseFunctions
. You must provide the function
name. If the submission does not contain one or more of the functions or keywords
listed, the learner receives a default feedback message:
The submission must contain the following functions or keywords:
<name1>, <name2>,
...<name
n
>
assessFunctionPresence(
lets you display specific feedback to the learner if the solution does not pass the
conditions in the assessment test. Use this syntax for function-type problems. You
must provide the function name.mustUseFunctions
,'FileName',fileName
,'Feedback',learnerFeedback
)
Examples
Input Arguments
Version History
Introduced in R2016a