Find and summarize values in matrix WITHOUT loop
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Sebastian Daneli
le 11 Mar 2020
Commenté : Sebastian Daneli
le 11 Mar 2020
Let's say that I have a matrix M=[1 2;1 1], and I need to find all the 1:s in each culumn, and then summerize them in a vector as v=[2 1]. Is this possible without a loop?
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Multidimensional Arrays 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!