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