Compare Strings (C-convention)
Versión 1.0.0.0 (412 Bytes) por
Stijn Helsen
This function compares two strings using C-convention.
2,3K descargas
Actualizado
22 sep 2003
Sin licencia
This (old) function compares two strings and gives an output similar to the C-function strcmp.
Unlike the MATLAB strcmp function the strings are compared in the alphabetical order.
c=strcmp(s1,s2)
c : -1 if s1<s2, 0 if s1==s2, +1 if s1>s2.
(This is an old function, which I wanted to supply now....)
Citar como
Stijn Helsen (2024). Compare Strings (C-convention) (https://www.mathworks.com/matlabcentral/fileexchange/3987-compare-strings-c-convention), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R10
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Characters and Strings en Help Center y MATLAB Answers.
Etiquetas
Agradecimientos
Inspiración para: lexcmp, String comparison
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |