📄 strncmp.m
字号:
%STRNCMP Compare first N characters of strings.
% STRNCMP(S1,S2,N) returns 1 if the first N characters of
% the strings S1 and S2 are the same and 0 otherwise.
%
% TF = STRNCMP(S,T,N), when either S or T is a cell array of strings,
% returns an array the same size as S and T containing 1 for those
% elements of S and T that match (up to N characters), and 0
% otherwise. S and T must be the same size (or one can be a scalar
% cell). Either one can also be a character array with the
% right number of rows.
%
% STRNCMP supports international character sets.
%
% See also STRCMP, STRNCMPI, FINDSTR, STRMATCH.
% Copyright 1984-2002 The MathWorks, Inc.
% $Revision: 1.16 $ $Date: 2002/04/09 00:33:38 $
% Built-in function.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -