For a string array, for example,
celldata =
3×1 cell array {'2018-12-12'} {'2018-11-05'} {'2018-09-02'}
Is there array operation (i.e. without using for loop) to extract the months from each cell and convert them to a 3*1 numeric matrix, which should be [12;11;09]. I don't want to use for loop because it was too slow.
Best Answer