how can i assign the same values in an array with 1?
Mostrar comentarios más antiguos
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 comentarios
This is the same basic task as your last question:
Did you try any of the answers? What information do you expect that those answers did not give you?
suchismita
el 6 de Feb. de 2016
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Matrices and Arrays en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!