strcmp gives a 0 while it should be a 1

조회 수: 1 (최근 30일)
Lieke van Boxtel
Lieke van Boxtel 2024년 4월 2일
댓글: Lieke van Boxtel 2024년 4월 2일
I am comparing names in 2 tables, to get the corresponding names and use that information. For this I am using strcmp, but for some of them they give back a 0 while they look the same to me, while for others it works fine. An example can be seen below, where it does not work. A week ago, this script was working perfectly fine. Where could I look to see what is different about these two, that it gives back a 0, so I can change what I need to.

채택된 답변

Bruno Luong
Bruno Luong 2024년 4월 2일
Look more carefully: There is a 'c' before '49' in A but not in B
  댓글 수: 1
Lieke van Boxtel
Lieke van Boxtel 2024년 4월 2일
Thank you, I knew there was something I was not seeing.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by