Problem 55760. Reproduce this plot!
Solution Stats
Problem Comments
-
8 Comments
There's seems to be an incorrect value for plot color of Data values.
Thanks, Dyuman. I've updated it - hopefully I've *corrected* it :)
Is it me being colorblind or there is still a problem with the color of Data values?
Yes, the test for color values seems incorrect for me as well.
I have the plot recreated, but the assertions don't seem to call the created function. Am I missing something?
@luxintenebris It's possible for a test suite to include code before the first test; this is run when a solution is evaluated, but isn't shown as part of the tests.
@Christian Schröder In that case, should there be some check that it always runs? Or just include it in the suite? I had to call the function in the scratchpad first before the assertions could be properly handled.
@luxintenebris The "hidden" code should always run since it's part of the test suite as far as the Cody engine is concerned, even if it's not shown on the web frontend.
And yes, this can be annoying because you then can't simply copy tests to the scratchpad to check your solution before submitting. At least in this problem, the hidden code doesn't do anything beyond setting the same variables given in the problem description, and calling the function.
That said when you submit your solution using the scratchpad should never be necessary, hidden test suite code or not.
Solution Comments
Show commentsProblem Recent Solvers120
Suggested Problems
-
1090 Solvers
-
9735 Solvers
-
363 Solvers
-
958 Solvers
-
359 Solvers
More from this Author10
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!