merge multiple cells in only one
Show older comments
Hi! How can I merge these two cells?

Final results:

3 Comments
Dyuman Joshi
on 8 Sep 2023
Edited: Dyuman Joshi
on 8 Sep 2023
@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
on 8 Sep 2023
Stephen23
on 8 Sep 2023
@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:
Accepted Answer
More Answers (0)
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!