Main Content

ascii2str

uint8 유형의 배열을 문자열로 변환하기

설명

예제

str = ascii2str(A)uint8 유형의 A 배열에 있는 ASCII 값을 문자열로 변환합니다.

참고

ascii2str 연산자는 C를 동작 언어로 사용하는 Stateflow® 차트에서만 지원됩니다.

예제

모두 확장

"Hi!" 문자열을 반환합니다.

A[0] = 72;
A[1] = 105;
A[2] = 33;
str = ascii2str(A);

Stateflow chart that uses the ascii2str operator in a state.

버전 내역

R2018b에 개발됨