How to reshape in 3D a downsampled matrix
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Tahariet Sharon
le 24 Avr 2020
Commenté : Turlough Hughes
le 24 Avr 2020
Let's say I have this data:
factor=2;
data=zeros(40,20,74);
data(1:factor:end,1:factor:end,1:factor:end)=1;
Now, I would like to get a new "data" matrix just retaining the values "ones".
Thanks in advance,
TS
0 commentaires
Réponse acceptée
Turlough Hughes
le 24 Avr 2020
Easiest thing to do would be just this:
newData = data(1:factor:end,1:factor:end,1:factor:end);
1 commentaire
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Multirate Signal Processing 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!