merging multidimensional cell array

2 ビュー (過去 30 日間)
sermet
sermet 2017 年 1 月 18 日
回答済み: the cyclist 2017 年 1 月 18 日
AA_last=1x1x3 cell
val(:,:,1) =
[12x4 double]
val(:,:,2) =
[13x4 double]
val(:,:,3) =
[13x4 double]
AA_last_glonass=1x1x3
val(:,:,1) =
[8x4 double]
val(:,:,2) =
[7x4 double]
val(:,:,3) =
[9x4 double]
How can I combine them into 1x1x7 cell as follows;
combined=
val(:,:,1) =
[20x4 double]
val(:,:,2) =
[20x4 double]
val(:,:,3) =
[22x4 double]

採用された回答

the cyclist
the cyclist 2017 年 1 月 18 日
This can be done straightforwardly with a for loop:
for nc = 1:size(AA_last,3)
combined{1,1,nc} = [AA_last{1,1,nc}; AA_last_glonass{1,1,nc}];
end

その他の回答 (0 件)

カテゴリ

Find more on Cell Arrays in Help Center and File Exchange

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by