필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Storing data using cellstr

조회 수: 2 (최근 30일)
James Knight
James Knight 2019년 10월 22일
마감: MATLAB Answer Bot 2021년 8월 20일
.

답변 (1개)

Bhaskar R
Bhaskar R 2019년 10월 22일
편집: Bhaskar R 2019년 10월 22일
I understood, convert the each character of the input string(usertext) to 0/1 if the ASCII value greater than 95 then i would be 0, if less than 95 then i would be 1, after this store the result to cell array
usertext = input('Enter your text message :','s');
binary = cellstr(num2str(double(usertext) < 95));
Hope I came up with your requirement !!

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by