CC=cellstradjustlen(OCC)
OCC : | Original cell array or table |
CC : | cell array or table in which all strings of a column have the same length |
cell2mat({'A';'A B'; 'A B C'; 'A D'}) % fails adjust strlen in column
cellstradjustlen({'A';'A B'; 'A B C'; 'A D'}) % adjust strlen in column
cell2mat(cellstradjustlen({'A';'A B'; 'A B C'; 'A D'})) % does work now