Compare Strings (C-convention)
by Stijn Helsen
22 Sep 2003
(Updated 22 Sep 2003)
This function compares two strings using C-convention.
|
Watch this File
|
| File Information |
| Description |
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....) |
| Acknowledgements |
This submission has inspired the following:
String comparison, lexcmp
|
| MATLAB release |
MATLAB 5.2 (R10)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (1) |
| 29 Aug 2007 |
Mark Feodusov
|
|
|
|
Contact us at files@mathworks.com