Looping the extraction of a vector from a 3d array

1 visualización (últimos 30 días)
Giorgio Sperandio
Giorgio Sperandio el 18 de Jun. de 2020
Comentada: Giorgio Sperandio el 19 de Jun. de 2020
Hi,
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.
squeeze(A(l,m,:));
But I have issues in creating a loop for each index (l,m)
Thank you for the help

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by