Opposite command of strfind?

2 次查看(过去 30 天)
I have a general question. Does it exist the opposite command of strfind ?
  2 个评论
Les Beckham
Les Beckham 2023-2-7
What would this "opposite" command do? Please give an example showing sample inputs and output. Or, at least give a more complete explanation in words.
Ivan Mich
Ivan Mich 2023-2-7
for example, strfind shows true result for words: "Milano" and "Milano".
I would like to have a command that could detect in an array the non same words...

请先登录,再进行评论。

采纳的回答

Jan
Jan 2023-2-7
编辑:Jan 2023-2-7
No, strfind does not replie true for any inputs. It replies the indices of found matchs.
Maybe you mean:
a = "Milano";
b = "Milano";
~isequal(a, b)
~strcmp(a, b)
isempty(strfind(a, b))
a ~= b
~(a == b)
~contains(a, b) % or (b, a) ?

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by