Sort elements from multidimensional array into 2D array?
Afficher commentaires plus anciens
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 commentaires
KSSV
le 9 Juin 2022
So, you want to pick only diagonale elements? What should be second column of B?
James Kosiol
le 9 Juin 2022
Abhijit Nayak
le 9 Juin 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.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!