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!


