Opposite command of strfind?

조회 수: 3 (최근 30일)
Ivan Mich
Ivan Mich 2023년 2월 7일
편집: Jan 2023년 2월 7일
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