if I want compare two strings
i want to check just the first word and whatever the others words
str1='Animation*' str2= 'Animation'
i.e can I compare strcmp(str1,str2)?
No products are associated with this question.
%% str1 = 'Animation|Children''s|Comedy'; str2 = 'Animation*'; str3 = 'Animation';
ism = strcmp( str3, regexp( str1, '\|', 'split' ) );
>> whos ism Name Size Bytes Class Attributes
ism 1x3 3 logical
>> ism ism = 1 0 0
Play games and win prizes!Learn more