Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Storing data using cellstr

1 回表示 (過去 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