STRJOIN

버전 1.1.0.0 (2.61 KB) 작성자: Kota Yamaguchi
Concatenate an array into a single string.
다운로드 수: 3K
업데이트 날짜: 2013/4/22

라이선스 보기

Syntax
S = strjoin(C)
S = strjoin(C, separator)

Description
S = strjoin(C) takes an array C and returns a string S which
concatenates array elements with comma. C can be a cell array
of strings, a character array, or a numeric array. If C is a
matrix, it is first flattened to get an array and concateneted.

S = strjoin(C, separator) also specifies separator to be used
for string concatenation. The default separator is comma.

Example
>> str = strjoin({'this','is','a','cell','array'})
str =
this,is,a,cell,array
>> str = strjoin(char({'this','is','a','char','array'}))
str =
this,is,a,char,array
>> str = strjoin([1,2,2],'_')
str =
1_2_2
>> str = strjoin({1,2,2,'string'},'\t')
str =
1 2 2 string

인용 양식

Kota Yamaguchi (2025). STRJOIN (https://kr.mathworks.com/matlabcentral/fileexchange/31862-strjoin), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2011a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Numeric Types에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.0

Added BSD licence statement; Improved efficiency;

1.0.0.0