Problem 2443. Clear functions with the same name in different packages independently
See the test suite.
N.B.: Overwriting files or functions a.k.a. cheating is not necessary.
Solution Stats
Problem Comments
-
7 Comments
I don't think the test suite works. It errors out with 'Undefined function or variable your_code'. Can't figure out why.
It works for me. It may be a little tricky.
I agree with Guillaume, the test suite can't work.
Someone already solved it yesterday. If I tell you how to solve that obstacle, I would make it a lot easier.
Just a little hint: I bet you can solve it in your own computer without changing the test suite.
The problem I believe is that your test suite is linux specific, so it's impossible to find why it doesn't work on a Windows computer. On Windows, your echo command creates invalid files as it writes the quotes to the files. If I remove the quote from your echos, my solution works fine on Windows.
That is true. But Cody is running on Unix. Anyhow, I have modified the test suite to be platform independent.
Solution Comments
Show commentsProblem Recent Solvers10
Suggested Problems
-
Find the alphabetic word product
3328 Solvers
-
Project Euler: Problem 8, Find largest product in a large string of numbers
1100 Solvers
-
Make a run-length companion vector
638 Solvers
-
Rotate input square matrix 90 degrees CCW without rot90
616 Solvers
-
find the maximum element of the matrix
497 Solvers
More from this Author8
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!