How to extract columns from multiple 3D arrays?

4 ビュー (過去 30 日間)
SojM
SojM 2021 年 9 月 20 日
編集済み: Matt J 2021 年 9 月 20 日
I have seven 3D arrays like below
f1 = 6 x 6 x 21
f2= 6 x 6 x 21
f3 = 6 x 6 x 21
f4 = 6 x 6 x 21
f5 = 6 x 6 x 21
f6 = 6 x 6 x 21
f7 = 6 x 6 x 21
Now, I want to take the element from each 3D array (f1, f2, f3, f4, f5, f6, f7) from same location and save it as a multiple column vectors. This way I would have 756 arrays of 7 x 1. How can I do this so that I can then acess each column of 7 x 1 separetely and also able to write for loop when I want to make and operation on all column vectors?

採用された回答

Matt J
Matt J 2021 年 9 月 20 日
編集済み: Matt J 2021 年 9 月 20 日
Seems like you could just put them in a matrix:
F=[f1(:), f2(:),f3(:),...,f7(:)]

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by