Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Storing data using cellstr

1 Ansicht (letzte 30 Tage)
James Knight
James Knight am 22 Okt. 2019
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
.

Antworten (1)

Bhaskar R
Bhaskar R am 22 Okt. 2019
Bearbeitet: Bhaskar R am 22 Okt. 2019
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 !!

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by