Borrar filtros
Borrar filtros

strcmp gives a 0 while it should be a 1

1 visualización (últimos 30 días)
Lieke van Boxtel
Lieke van Boxtel el 2 de Abr. de 2024
Comentada: Lieke van Boxtel el 2 de Abr. de 2024
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.

Respuesta aceptada

Bruno Luong
Bruno Luong el 2 de Abr. de 2024
Look more carefully: There is a 'c' before '49' in A but not in B
  1 comentario
Lieke van Boxtel
Lieke van Boxtel el 2 de Abr. de 2024
Thank you, I knew there was something I was not seeing.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by