merge multiple cells in only one
Ältere Kommentare anzeigen
Hi! How can I merge these two cells?

Final results:

3 Kommentare
Dyuman Joshi
am 8 Sep. 2023
Bearbeitet: Dyuman Joshi
am 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
am 8 Sep. 2023
Stephen23
am 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:
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Environment and Settings finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!