how can i assign the same values in an array with 1?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
suchismita
le 6 Fév 2016
Commenté : suchismita
le 6 Fév 2016
I have an array as
A=[303
95
54
303
303]
I want to assign all same values as 1 and others as 0
A= [1
0
0
0
1
1]
2 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Matrix Indexing 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!