Include p code in a matlab grader assignment
显示 更早的评论
I am an instructor and I am planning to use matlab grader in my course next semester. I would like to add obscured code to some of the assigments. For example, in one of the assigments, the students need to model a set of data as a power law y=a*x^m, where the goal is to find the coefficients a and m. The data is created by a function
function [x,y]=powerLaw()
x=logspace(-2,2,20);
y=3*x.^(-2).*abs((1+(rand(1,20)-.5)/.2));
end
Obviously, I do not want the students to have access to contents of the function. So I would like to include it as a p code. How can I do that?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Use Content in an LMS Course 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


