How to convert a cell array that contains inside durations to a duration array

4 次查看(过去 30 天)
Hi, so thats my problem I got a cell array that contain inside a group of duration and I want to split this group of duration to not have the cells. How can I do it? I post the variable so you can see easely what I mean.

采纳的回答

Benjamin Thompson
Benjamin Thompson 2022-2-10
Not very elegant but the brute force way to copy from your cell array to a duration array:
A = All_Time_msg_dist_Max{1};
for i = 1:length(All_Time_msg_dist_Max)
A(:,i) = All_Time_msg_dist_Max{i};
end
  4 个评论
flashpode
flashpode 2022-2-10
but this is gonna give me the second column after the first one? couse what I want is to get both durations of the cell consecutive.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by