display newline string from cell array

I have a cell array of characters. In that i have a newline character.
I use strjoin to get the full sentence
fullsentence = strjoin(word, '');
But when i display output is coming as
ER\n\nR
but i wanted it as
ER
R

 Respuesta aceptada

Geoff Hayes
Geoff Hayes el 16 de Mzo. de 2018
Elysi - how are you displaying the output of fullsentence? If you do
fprintf(fullsentence)
then you should see the \n evaluated as line breaks.

Más respuestas (0)

Categorías

Más información sobre Characters and Strings en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 16 de Mzo. de 2018

Respondida:

el 16 de Mzo. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by