Merging Cell Array Elements in One Element
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
tinkyminky93
am 3 Jun. 2022
Beantwortet: VINAYAK LUHA
am 3 Jun. 2022
Hello,
I have a cell array and its elements are like
1x4 cell array
{'1A'}
{'2B'}
{'3C'}
{'4D'}
I don't want to access them seperately, what I want is merge them like
1x1 cell array
{'1A2B3C4D'}
so that I can convert it to decimal easily. How can I do that? Thank you.
0 Kommentare
Akzeptierte Antwort
VINAYAK LUHA
am 3 Jun. 2022
Hi ,
CellArr ={'1A','2B','3C','4D'}
MergedCellArr = [CellArr{:}]
DecValue = hex2dec(MergedCellArr)
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays 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!