assessFunctionAbsence
检查学生答案中是否不包含某些函数或关键字
语法
说明
assessFunctionAbsence(
检查提交的基于脚本的答案中是否不包含 disAllowedFunctions
)disAllowedFunctions
中列出的特定函数或关键字。如果提交的答案中确实包含列出的一个或多个函数或关键字,则学生会收到一条默认反馈消息:
The submission must not contain the following functions or keywords: <name1>, <name2>, ...<name
n
>
如果答案不满足评判项目中的条件,assessFunctionAbsence(
可帮助您向学生显示具体反馈。此语法适用于基于脚本的习题。disAllowedFunctions
,'Feedback',learnerFeedback
)
assessFunctionAbsence(
检查提交的基于函数的答案中是否不包含 disAllowedFunctions
,'FileName',fileName
)disAllowedFunctions
中列出的特定函数或关键字。如果提交的答案中确实包含列出的一个或多个函数或关键字,则学生会收到一条默认反馈消息:
The submission must not contain the following functions or keywords: <name1>, <name2>, ...<name
n
>
如果答案不满足评判项目中的条件,assessFunctionAbsence(
可帮助您向学生显示具体反馈。此语法适用于基于函数的习题。您必须提供函数名称。disAllowedFunctions
,'FileName',fileName
,'Feedback',learnerFeedback
)
示例
输入参数
版本历史记录
在 R2016a 中推出