Filter löschen
Filter löschen

Make a text matrix to one cell string

1 Ansicht (letzte 30 Tage)
Alexandros
Alexandros am 17 Nov. 2011
How to make a 5 column text matrix to one cell string.
>>A 'A1' 'A2' 'A3' 'A4'
i want to have
A = 'A1 A2 A3'
Thank you
  1 Kommentar
the cyclist
the cyclist am 17 Nov. 2011
I don't understand what you mean by "5 column text matrix". Can you write functioning MATLAB code that defines what your input array looks like?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Alexandros
Alexandros am 17 Nov. 2011
I make two separate strings of B2a = 'am' and B2b = 'old'
and then with strcat i can
B = strcat(B2a,{' '},B2b)
B = "am old'

Weitere Antworten (0)

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by