Effacer les filtres
Effacer les filtres

How to split 360*160*50 data into several 5*5*5 chunks?

1 vue (au cours des 30 derniers jours)
Yandong Lang
Yandong Lang le 5 Mar 2019
Commenté : Star Strider le 5 Mar 2019
I want to slipt my 360*160*50 data into several 5*5*5 chunks. Then do the calculation into each chunk. Each chunk will give me on result and need to label the result as well. The results need to be in a 72*32*10 dataset.

Réponse acceptée

Star Strider
Star Strider le 5 Mar 2019
Use the reshape (link) function:
M = rand(360, 160, 50);
R = reshape(M, 5, 5, 5, []);
Rsize = size(R) % Check Result
producing:
Rsize =
5 5 5 23040
  2 commentaires
Yandong Lang
Yandong Lang le 5 Mar 2019
Thank you very much, that really helps!
Star Strider
Star Strider le 5 Mar 2019
As always, my pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Troubleshooting in Polyspace Products for Ada dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by