Include p code in a matlab grader assignment
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on Use Content in an LMS Course in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

