k = strcmp(word{w},com_word{y});
if(k) new_word = strrep(word,word{w},'');
Say i wanna do something like this , comparing two strings word by word for example:
str1 : ' my world is awesome '
str2 : ' my world was awesome '
Now i want to compare the words in str1 with those in str2 and remove the common words in both. Finally, only ' is ' remains in str1.