Problem 42522. string comparision

Solution 3785773

Submitted on 22 Nov 2020 by Marek Macák
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!