Cody

Problem 790. Cody Computer Part 5 - Guess the Name of Cody Computer

Solution 2951368

Submitted on 15 Sep 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
[s,g] = unix('set'); [a,nb] = regexp(g,'HOSTNAME=','split'); sol = regexp(a{2},'\n','split'); sol = sol{1}; % 11-July-2012 strcmp replaced isequal to accept answers of class java.lang.String assert(strcmp(your_fcn_name,sol),sprintf('Solution is %s',sol))

Error: You may not use the command(s) unix in your code

Suggested Problems

More from this Author30

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!