Problem 397. capable husband?

Solution 3504829

Submitted on 1 Nov 2020 by Sibi
  • Size: 7
  • This is the leading solution.
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   Pass
husband=certified_husband() assert(isequal(husband(),'yes'))

ans = "yes" husband = "yes"

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

ans = "yes" husband = "yes"

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

ans = "yes" husband = "yes"

Suggested Problems

More from this Author100

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!