Sort elements from multidimensional array into 2D array?
Ältere Kommentare anzeigen
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 Kommentare
KSSV
am 9 Jun. 2022
So, you want to pick only diagonale elements? What should be second column of B?
James Kosiol
am 9 Jun. 2022
Abhijit Nayak
am 9 Jun. 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.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!