이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
Compares 2 strings, str1 and str2 and return -1 if str1 < str2, 0 if str1==str2 and 1 if str1 > str2. output is identical to that of C string library.
Same idea as files listed in acknowledgments. The difference is that this implementation is faster since it uses mex function.
Type mex strcmpC.c at the MATLAB prompt to generate the mex file. Then call strcmpC like any MATLAB function.
Example usage:
strcmpC('1234','2345535')
ans =
-1
Source code heavily references a mex example. See mxmalloc.c.
Type the following command in MATLAB prompt to see mxmalloc.c
edit([matlabroot '/extern/examples/mx/mxmalloc.c']);
인용 양식
ChinSoon Lim (2026). String comparison (https://kr.mathworks.com/matlabcentral/fileexchange/23375-string-comparison), MATLAB Central File Exchange. 검색 날짜: .
도움
도움 받은 파일: Compare Strings (C-convention), lexcmp
| 버전 | 퍼블리시됨 | 릴리스 정보 | Action |
|---|---|---|---|
| 1.0.0.0 | submit another update that removes the GNU License statement from your Zip as requested by admin
submit another update that removes the GNU License statement from your Zip as requested by admin |
