how can i assign the same values in an array with 1?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
suchismita
il 6 Feb 2016
Commentato: suchismita
il 6 Feb 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 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!