Convert cell array into array

4 次查看(过去 30 天)
Hi Everyone,
I have a cell array 12x5 where each element is datetime array. Someone knows how to convert cell array into datetime array? To be clearer I would like to obtain an array with size 1472x1 . Thanks.
12×1 cell array
{125×1 datetime}
{113×1 datetime}
{125×1 datetime}
{121×1 datetime}
{125×1 datetime}
{121×1 datetime}
{125×1 datetime}
{125×1 datetime}
{121×1 datetime}
{125×1 datetime}
{121×1 datetime}
{125×1 datetime}

采纳的回答

Bhaskar R
Bhaskar R 2020-2-28
result = cellfun(@vertcat, vertcat(your_array{:}))
  3 个评论
Valerio Gianforte
Valerio Gianforte 2020-2-28
Ok, now it does work. Thank you so much.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

产品


版本

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by