stringArrayLength(S​)

버전 2.0.0.0 (990 Bytes) 작성자: Sugato
This function returns the length of string(s) in a single string or a cellarray or a matrix.
다운로드 수: 21
업데이트 날짜: 2017/8/14

라이선스 보기

Function Description
This function returns the length of string(s) in a single string or a
cellarray or a matrix.
AUTHOR: Sugato Ray | Created on: 12-AUG-2017 | ray.sugato[at]gmail.com

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLEASE ACKNOWLEDGE THE AUTHOR IF YOU USE THIS CODE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

INPUT:
S = a string array or a string matrix

OUTPUT:
L = a numeric array or a matrix, with the same size and shape as S.

EXAMPLE:
L = stringArrayLength(S);
Try This:
S = {'abc','2D','1','gavlvvglbv','guDVWF FIUWWFH ihf poj','gtwe66etr2rrhndm\['}
L = stringArrayLength(S)

인용 양식

Sugato (2026). stringArrayLength(S) (https://kr.mathworks.com/matlabcentral/fileexchange/64096-stringarraylength-s), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2016a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Characters and Strings에 대해 자세히 알아보기
버전 게시됨 릴리스 정보
2.0.0.0

Updated the code for a better and faster alternative suggested by Jan Simmon.

1.0.0.0

Updated description.