how to combine strings

Hi I want to combine those strings into a single string and without the space of the last string. Can anyone tell me how please? Thanks

1 comentario

Bruno Luong
Bruno Luong el 15 de Oct. de 2018
Can't you post the strings in a text form rather than this screen capture that no one can possibly see?

Iniciar sesión para comentar.

Respuestas (1)

madhan ravi
madhan ravi el 15 de Oct. de 2018
Editada: madhan ravi el 15 de Oct. de 2018

0 votos

An example: (since you didn’t post the code but this syntax strcat() should work for your case )
s1 = {'abcde'};
s2 = {'jkl'};
s = strcat(s1,s2) %result without space

Categorías

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

Etiquetas

Preguntada:

el 15 de Oct. de 2018

Editada:

el 15 de Oct. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by