Padding a cell array?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
How do you pad every other element of a cell array with a blank value thereby doubling the length of the cell?
0 Kommentare
Akzeptierte Antwort
Voss
am 28 Nov. 2022
Maybe something like this:
C = {1 2 3 4};
C_new = cell(1,2*numel(C));
C_new(1:2:end) = C
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Find more on Cell Arrays 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!