I want to get Nx1 cell array from 1x1 cell array of datetime string. Where N is greater than 98.
Time = {datestr(now(),'mmmm dd, yyyy HH:MM:SS.FFF')};
Time =
1×1 cell array
{'January 28, 2021 12:27:15.280'}
I want to convert this as
Time=
5×1 cell array
{'January 28, 2021 17:24:47.119'}
{'January 28, 2021 17:24:47.119'}
{'January 28, 2021 17:24:47.119'}
{'January 28, 2021 17:24:47.119'}
{'January 28, 2021 17:24:47.119'}
I am doing this using
Time=[Time;Time;Time;Time;Time]
But for variable and large value of N, it is very difficult.
question from:
https://stackoverflow.com/questions/65936852/how-to-convert-1x1-cell-array-to-5x1-cell-array-of-datetime-string-in-matlab 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…