Compare Strings (C-convention)

This function compares two strings using C-convention.

이 제출물을 팔로우합니다

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....)

인용 양식

Stijn Helsen (2026). Compare Strings (C-convention) (https://kr.mathworks.com/matlabcentral/fileexchange/3987-compare-strings-c-convention), MATLAB Central File Exchange. 검색 날짜: .

도움

도움 준 파일: lexcmp, String comparison

카테고리

Help CenterMATLAB Answers에서 Characters and Strings에 대해 자세히 알아보기

일반 정보

MATLAB 릴리스 호환 정보

  • 모든 릴리스와 호환

플랫폼 호환성

  • Windows
  • macOS
  • Linux
버전 퍼블리시됨 릴리스 정보 Action
1.0.0.0