Compare Strings (C-convention)

Version 1.0.0.0 (412 octets) par Stijn Helsen
This function compares two strings using C-convention.
2,3K téléchargements
Mise à jour 22 sept. 2003

Aucune licence

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....)

Citation pour cette source

Stijn Helsen (2024). Compare Strings (C-convention) (https://www.mathworks.com/matlabcentral/fileexchange/3987-compare-strings-c-convention), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R10
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Characters and Strings dans Help Center et MATLAB Answers
Remerciements

A inspiré : lexcmp, String comparison

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.0