MATLAB: How to call an external function in Cody Coursework

codycourseworkfiles referencedfunction call

I am developing an assignment for my students in Cody Coursework.
I would like them to implement a function "f" that calls another function "g" given by me. The code for "f" would be
function [value] = f(a, b)
...
% Call g
g(a, b)
...
end
I want Cody Coursework to have access to the implementation of "g" and use it in function "f" when called.

Best Answer

You can implement this function g() in a file, say, g.m and upload it in "Files Referenced" when creating a problem within the assignment.