Cody

Problem 42522. string comparision

Solution 3302758

Submitted on 21 Oct 2020 by Wesley Maa
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' y = logical 1

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

b = 'lazy' y = logical 0

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!