home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Borland Programmer's Resource
/
Borland_Programmers_Resource_CD_1995.iso
/
utils
/
mathstud
/
strcmp.m
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1995-05-19
|
315 b
|
17 lines
function r = strcmp(s,t)
%r=strcmp(s,t)
%string comparison (takes care of string arrays)
%COMPATIBILITY: MATLAB 3.5 doesn't compare 2D string arrays
% S.Halevy 7/31/92
% Copyright (c) 1992 by the MathWizards
r = 0;
sz=size(s);
tz=size(t);
if sz==tz
r = (s==t);
r=all(r(:));
end