Problem 537. Cody Computer Part 3 - Detect the graphic card used on Cody Computer
Solution Stats
Problem Comments
-
3 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.
This problem should be solvable again.
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 Solvers13
Suggested Problems
-
1458 Solvers
-
67 Solvers
-
Back to basics 8 - Matrix Diagonals
884 Solvers
-
177 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
843 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!