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 210744

Submitted on 1 Mar 2013

Incorrect

7Size
Leading solution size is 8.
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
 
%%
x = 'You want to go shopping with me, right?';
y_correct = 'yes';
assert(isequal(wiferightagain(x),y_correct))
Error: Undefined function 'wiferightagain' for input arguments of type 'char'.
2
Fail
 
%%
ready = 'Will you be ready soon?';
when_she_said = 'In a couple minutes';
when_really = 'An hour if you''re lucky';
y_correct = 'yes';
assert(isequal(wiferightagain(ready,when_she_said,when_really),y_correct))
Error: Undefined function 'wiferightagain' for input arguments of type 'char'.