New Vectors from Old Array
14 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a [50,6] set of data, and need to create two column vectors from it based on whether a piece of data in column 4 has a value or just 0. so if it has a value it returns the first column number that are in column 1, which correspond to the value or the 0. hopefully that make sense.
ex. a =
1 2 5 0
2 9 3 3
3 8 2 0
i need it to return
b = [2]' and c = [1,3]'
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical 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!