Cody

Problem 43276. Get Cody's screen size

Solution 1997179

Submitted on 31 Oct 2019
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
Codys_screen_size = get(0,'screensize'); Codys_screen_size = Codys_screen_size(3:4); y = getCody(); assert(~isnumeric(y)) sz = get(y,'screensize'); sz = sz(3:4); assert(isequal(sz, Codys_screen_size)) disp(sz)

Out of memory. The likely cause is an infinite recursion within the program. Error in getCody (line 2) y = getCody()