assessFunctionPresence
Check for presence of specific functions or keywords in the submission
Syntax
Description
assessFunctionPresence(
checks a script-based 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 assessment does not pass.
Use this syntax for script-based problems.mustUseFunctions
,'Feedback',learnerFeedback
)
assessFunctionPresence(
checks a function-based 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 assessment does not pass.
Use this syntax for function-based problems. You must provide the function
name.mustUseFunctions
,'FileName',fileName
,'Feedback',learnerFeedback
)
Examples
Input Arguments
Version History
Introduced in R2016a