Divide array in to smaller 3D array
2 次查看(过去 30 天)
显示 更早的评论
Hello, Maybe someone could help me with the following situation. Lets say I have multiple *.mat files, that contains of arrays with different number of rows but with the same number of columns. I need to divide each loaded array in to smaller 3D arrays. For example if I have array a 1324000xM, I would like to make 400000xMx3, and 124000 rows would be used for training later. If I have array 2411000xM it should be 400000xMx6. And not always it would be 400000 rows it could warry, what would be the way to achieve this?
2 个评论
Image Analyst
2018-7-28
I don't understand how your .mat files, that contains one or more arrays (I'm not sure if it's one or more than one), are 3-D. And when you make your 3-D arrays, like a 400000xMx3 starting with a 1324000xM, what goes into the 3rd dimension? And how do you know if the 3rd dimension will be 3 or 6 planes? Have you tried reshape() and permute()?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!