Can I combine letters with numbers in the same matrix?
5 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Rik
2022 年 8 月 23 日
You have these options:
{'L','M';1,2}
["L","M";"1","2"]
['L','M';1,2]
double(['L','M';1,2])
1 件のコメント
Steven Lord
2022 年 8 月 23 日
Another option:
T = table(['L'; 'M'], [1; 2])
T(1, :)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!