MATLAB Answers

Looping the extraction of a vector from a 3d array

조회 수: 3(최근 30일)
Sorry I am new to Matlab and I might be not clear in the description of the issue.
I have an array of single 'A' which has size(l,m,n) = 424x412x29224
I want to loop the extraction of all the 29224 values for each index (l,m) in order to obtain a final matrix 'B' which has size = 174688x29224
With the squeeze function I am able to do that for a given index (l,m), e.g.
But I have issues in creating a loop for each index (l,m)
Thank you for the help

  댓글 수: 0

댓글을 달려면 로그인하십시오.

채택된 답변

the cyclist
the cyclist 19 Jun 2020
B = reshape(A,[174688,29224]);

  댓글 수: 1

Giorgio Sperandio
Giorgio Sperandio 19 Jun 2020
It worked perfectly. Thank you very much!

댓글을 달려면 로그인하십시오.

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by