Azzera filtri
Azzera filtri

How to add strings?

3 visualizzazioni (ultimi 30 giorni)
Rohit Deshmukh
Rohit Deshmukh il 23 Ott 2019
Commentato: Rohit Deshmukh il 23 Ott 2019
Suppose i have two strings a and b
a = {'two' , 'three' , 'four'}
b= {'five','six','seven'}
I want output as C
C= {'two','three','four','five','six','seven'}
I tried using strvact and strcat but it doesn't work. What should be used to get c in terms of and b?

Risposta accettata

galaxy
galaxy il 23 Ott 2019
C = horzcat(a, b)
  2 Commenti
Akira Agata
Akira Agata il 23 Ott 2019
Or simply:
C = [a,b];
Rohit Deshmukh
Rohit Deshmukh il 23 Ott 2019
Thanks a ton both of you :)

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Characters and Strings in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by