Hello, Krisztina Szilágyi.
To make a good Cody problem there should be several (four or more) test cases within the Test Suite.
See Problem 44631 and successors for some ideas. For this specific problem it may also be interesting to ban the use of MATLAB's built-in function, which is most conveniently done by using assessfunctionabsence (see https://au.mathworks.com/help/coursework/ug/assessfunctionabsence.html ) in the Test Suite. —DIV
2184 Solvers
3895 Solvers
Find the largest value in the 3D matrix
1056 Solvers
160 Solvers
365 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!