merge multiple cells in only one
古いコメントを表示
Hi! How can I merge these two cells?

Final results:

3 件のコメント
Dyuman Joshi
2023 年 9 月 8 日
編集済み: Dyuman Joshi
2023 年 9 月 8 日
@Alberto Acri, just a note - Posting screenshots of code or data is not helpful.
You should attach the code or data with the question.
Also, mentioning the final output is helpful as well. Make it easy for us to help you solve your problem.
With the given info, the obvious "merging" to me is to convert value1 to a 1x1 cell and vertically concate with value2.
Alberto Acri
2023 年 9 月 8 日
Stephen23
2023 年 9 月 8 日
@Alberto Acri: note that storing scalar strings in cell arrays is very inefficient, and it avoids all of the benefits of using string arrays. You should be using string arrays, just as the documentation recommends:
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!