Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Storing data using cellstr

2 visualizaciones (últimos 30 días)
James Knight
James Knight el 22 de Oct. de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
.

Respuestas (1)

Bhaskar R
Bhaskar R el 22 de Oct. de 2019
Editada: Bhaskar R el 22 de Oct. de 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 !!

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by