No BSD License  

Highlights from
Compare Strings (C-convention)

4.0

4.0 | 1 rating Rate this file 3 Downloads (last 30 days) File Size: 579 Bytes File ID: #3987

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  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
strings Stijn Helsen 22 Oct 2008 07:07:47
string Stijn Helsen 22 Oct 2008 07:07:47
compare Stijn Helsen 22 Oct 2008 07:07:47
utilities Stijn Helsen 22 Oct 2008 07:07:47
output Stijn Helsen 22 Oct 2008 07:07:47
old Stijn Helsen 22 Oct 2008 07:07:47
string manipulation Stijn Helsen 22 Oct 2008 07:07:48

Contact us at files@mathworks.com