No BSD License  

Highlights from
String-list Comparison

Be the first to rate this file! 2 Downloads (last 30 days) File Size: 1.05 KB File ID: #3989

String-list Comparison

by Stijn Helsen

 

22 Sep 2003 (Updated 22 Sep 2003)

Compares two string-arrays to find equals.

| Watch this File

File Information
Description

This submission has two functions compstr and compstrs (could have been incorporated in one function). The two function are the same except that one is for sorted arrays, and the other isn't.

The function searches for equal strings in the two arrays, and also gives the strings which appear only in one of the two string-arrays.

[iequal,i1,i2]=strcmp[s](S1,S2);

iequal gives any nx2 array for indices in S1 and S2 respectively for the equal strings. i1 and i2 point to strings only appearing in S1 and S2.

!!!This function is made only for string-arrays where no equal strings appear!!!

MATLAB release MATLAB 6.0 (R12)
Other requirements strcmpc function (earlier submission).
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
26 Nov 2010 Thierry Dalon

calls strcmpc?

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:49
string array comparison Stijn Helsen 22 Oct 2008 07:07:49
utilities Stijn Helsen 22 Oct 2008 07:07:49
string manipulation Stijn Helsen 22 Oct 2008 07:07:49

Contact us at files@mathworks.com