Sollicitatievraag bij MathWorks

Given a function how would you alter it so that the code will compile.