What is meaning of x(x==c1) = 127 ?

9 visualizaciones (últimos 30 días)
Kei Manabe
Kei Manabe el 25 de Jun. de 2017
Editada: Roger Stafford el 25 de Jun. de 2017
I am looking into crypto(x) now and do not understand the meaning of x(x==c1) = 127;. Could anyone please let me know? Thank you so much.

Respuesta aceptada

Roger Stafford
Roger Stafford el 25 de Jun. de 2017
Editada: Roger Stafford el 25 de Jun. de 2017
It means that every element in array x that equals c1 is replaced by the value 127.

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by