Combining two matrices with different sizes
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Cheuk Yin Wong
le 19 Mai 2022
Commenté : Cheuk Yin Wong
le 22 Mai 2022
I have two matrices: M1(176x2x7) double and M2(369x2x27). The 176 column is 250:600 (interval of 2) and the 369 column is 230:598 (interval of 1). I would like the M1 to replace M2 (: , : ,1:7) and make sure the data is 0 for the odd numbers after the replacement for (: , : ,1:7). Could anyone please tell me how to do it.
Thank you very much!
6 commentaires
David Hill
le 19 Mai 2022
A simple example would be helpful. What about the other columns? Are all the 1st columns of M1 in the 3rd dimension the same? (250:2:600)'
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Argument Definitions 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!