How to use strsplit in cell arrays
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Alli Rat
am 9 Sep. 2018
Bearbeitet: Alli Rat
am 9 Sep. 2018
I have a cell array (named B) with the following dimensions (120 x 1) filled with what I believe are strings. Following is an example of the first 2 cells of the array.
Message_2 = hex2dec('2');
Message_4A = hex2dec('4A');
and so on....
I would like to create a new array (120 x 1) that would output:
2
4A
so on...
I am able to take the contents of one cell, convert into a character and then use the strsplit by delimiter to get what I need. But I am not able to do this for the whole cell array. when I use the cellfun with the char function or the strsplit, I am getting errors.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Cell Arrays finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!