how to combine strings

2 vues (au cours des 30 derniers jours)
Elie Elias
Elie Elias le 15 Oct 2018
Modifié(e) : madhan ravi le 15 Oct 2018
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 commentaire
Bruno Luong
Bruno Luong le 15 Oct 2018
Can't you post the strings in a text form rather than this screen capture that no one can possibly see?

Connectez-vous pour commenter.

Réponses (1)

madhan ravi
madhan ravi le 15 Oct 2018
Modifié(e) : madhan ravi le 15 Oct 2018
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

Catégories

En savoir plus sur Characters and Strings dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by