I have a 3d m
x n
x t
matrix , I want to be able to extract t
2d n
x m
matrices. In my case I have a 1024x1024x10 matrix and I want to have 10 images showing it to me.
This is not reshaping, I want just part of the data each time, is there a way doing it simpler that just coping member by member the data needed?
Yes, just do eg:
my_2d_array = my_3d_array(:,:,n);
For more info, see eg http://www.mathworks.com/help/techdoc/math/f1-86528.html .
as Oliver said you can use:
my_2d_array = my_3d_array(:,:,n);
You can use squeeze function to remove the 1*1 of the matrix.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.