assessFunctionAbsence
Check that certain functions or keywords are not present in the learner solution
Syntax
Description
assessFunctionAbsence(
checks that the specific functions or keywords listed in
disAllowedFunctions
)disAllowedFunctions
are not present in the submission of a
script-based solution. If the submission does contain one or more of the functions
or keywords listed, the learner receives a default feedback message:
The submission must not contain the following functions or keywords:
<name1>, <name2>,
...<name
n
>
assessFunctionAbsence(
lets you display specific feedback to the learner if the assessment does not pass.
Use this syntax for script-based problems.disAllowedFunctions
,'Feedback',learnerFeedback
)
assessFunctionAbsence(
checks that the specific functions or keywords listed in
disAllowedFunctions
,'FileName',fileName
)disAllowedFunctions
are not present in the submission of a
function-based solution. If the submission does contain one or more of the functions
or keywords listed, the learner receives a default feedback message:
The submission must not contain the following functions or keywords:
<name1>, <name2>,
...<name
n
>
assessFunctionAbsence(
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.disAllowedFunctions
,'FileName',fileName
,'Feedback',learnerFeedback
)
Examples
Input Arguments
Version History
Introduced in R2016a