MATLAB - String Handling
What will be the output of this MATLAB code?
s1 = "apple";
s2 = "Apple";
result = strcmpi(s1, s2);
disp(result);
s1 = "apple";
s2 = "Apple";
result = strcmpi(s1, s2);
disp(result);
strcmpi compares strings ignoring case differences.strcmpi returns logical true (1).15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions