How to extract cell array?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Tyann Hardyn
am 29 Aug. 2021
Kommentiert: Tyann Hardyn
am 29 Aug. 2021
Hi, everyone... I want to ask about how to extract this cell array to a string data which contained in each of those cells. So i have this kind of data :
data = reshape(per_combine,[],1);
data
ans =
3×1 cell array
{44640×1 string}
{40320×1 string}
{40320×1 string}
I just want to grab each data string in each of those three cells to 44640 + 40320 + 40320 of data strings .....
Could it be possible, anyone? Thank you very much...
3 Kommentare
Akzeptierte Antwort
Walter Roberson
am 29 Aug. 2021
strs = vertcat(data{:});
That would get you a (44640 + 40320 + 40320) by 1 string array.
3 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical 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!