Sort elements from multidimensional array into 2D array?
Mostrar comentarios más antiguos
So I have a Multidimensional array S (115 x 90 x 64) and I need to form multple 64x1 arrays B. So for example, the first B is the first element in the 64 115x90 S array S(1,1,:). How would I go about doing this?
3 comentarios
KSSV
el 9 de Jun. de 2022
So, you want to pick only diagonale elements? What should be second column of B?
James Kosiol
el 9 de Jun. de 2022
Abhijit Nayak
el 9 de Jun. de 2022
So, we need a way to extract the 2D matrix along z-axis and then save them separately.
Refer the following link for similar query and you can follow up the solution provided there.
Instead of saving it in different .csv files, you can store them simply in a 2D array.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!