Cody

Problem 43276. Get Cody's screen size

Solution 2292051

Submitted on 18 May 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
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)

Undefined function 'ScreenSize' for input arguments of type 'double'. Error in getCody (line 7) 'Position',[ (ScreenSize(3:4)-[300 75])/2 300 75], ... Error in Test1 (line 3) y = getCody();