Problem 42522. string comparision

Solution 2991697

Submitted on 25 Sep 2020 at 16:02 by Benjamin
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
a='azy'; b='azy' y_correct = 1; assert(isequal(string_comp(a,b),y_correct))

b = 'azy'

2   Pass
a='azy'; b='lazy' y_correct = 0; assert(isequal(string_comp(a,b),y_correct))

b = 'lazy'

Suggested Problems

More from this Author18

Community Treasure Hunt

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

Start Hunting!