Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 330349

Submitted on 7 Oct 2013

Incorrect

154Size
Leading solution size is 20.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Fail
 
%%
h=msgbox('Click the OK button','');
clickOK();
assert(ishandle(h),'do not simply delete the figure');
drawnow;
assert(~ishandle(h),'failed to click the OK button');
Error: Undefined function or variable 'h'.