Cody

Solution 1981011

Submitted on 17 Oct 2019 at 21:12
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
husband=certified_husband() assert(isequal(husband(),'yes'))

Operands to the || and && operators must be convertible to logical scalar values. Error in certified_husband (line 2) husband='yes' || 1; Error in Test1 (line 1) husband=certified_husband()

2   Fail
husband=certified_husband() assert(length(husband)==1)

Operands to the || and && operators must be convertible to logical scalar values. Error in certified_husband (line 2) husband='yes' || 1; Error in Test2 (line 1) husband=certified_husband()

3   Fail
husband=certified_husband() assert(prod(size(husband))==1)

Operands to the || and && operators must be convertible to logical scalar values. Error in certified_husband (line 2) husband='yes' || 1; Error in Test3 (line 1) husband=certified_husband()

Suggested Problems

More from this Author100