Can I combine letters with numbers in the same matrix?
16 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Can I combine letters with numbers in the same matrix?
I have vector B return two letters for example [L M]
And another vector O returns two numbers for example [1 2]
Can I combine them to be like this?
[L M
1 2]
0 Kommentare
Akzeptierte Antwort
Rik
am 23 Aug. 2022
You have these options:
{'L','M';1,2}
["L","M";"1","2"]
['L','M';1,2]
double(['L','M';1,2])
1 Kommentar
Steven Lord
am 23 Aug. 2022
Another option:
T = table(['L'; 'M'], [1; 2])
T(1, :)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!