Problem 537. Cody Computer Part 3 - Detect the graphic card used on Cody Computer
Solution Stats
Problem Comments
-
2 Comments
Is the first test case broken? (maybe after a Cody update...) :-/
The test suite is broken. The current command for detecting the graphic card is a=rendererinfo(gca), but this can only done by hacking.
Solution Comments
-
1 Comment
I tryed all the time other functions... but now! ;-)
-
2 Comments
I do not reach this... :-/
new comment here: http://www.mathworks.com/matlabcentral/cody/solutions/470839#comment_4173
-
4 Comments
mmm... this should have worked... perhaps cody fixed the "change the function name" vulnerability?
No they did not. I believe then this did not work because @char/regexp takes precedence over your regexp function... this will work if you use instead another among the "three" (this is a hint) functions called by the testsuite before the error occurs (this happens when evaluating "tf{1}")...
I tryed also this:
http://www.mathworks.com/matlabcentral/cody/problems/537-cody-computer-part-3-detect-the-graphic-card-used-on-cody-computer/solutions/470848
but it also does not work. :-(
Ha, I followed the same sequence. Third time (and third function to overload) is a charm. Just look at the first test in the testsuite again :)
-
2 Comments
There must be a problem with the test 1. The displayed error comes from the test case not from my code. If your_fcn_name returns just a string the error will be displayed too!
I am having a similar problem. My code returns an identical match to the test case code when I run it in MATLAB, but I'm receiving an "Index exceeds matrix dimensions" error here.
-
1 Comment
This ought to be the best solution (size 14)
Problem Recent Solvers11
Suggested Problems
-
Find the numeric mean of the prime numbers in a matrix.
8025 Solvers
-
205 Solvers
-
308 Solvers
-
69 Solvers
-
MATCH THE STRINGS (2 CHAR) very easy
277 Solvers
More from this Author30
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!