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

1 visualizzazione (ultimi 30 giorni)
Kei Manabe
Kei Manabe il 25 Giu 2017
Modificato: Roger Stafford il 25 Giu 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.

Risposta accettata

Roger Stafford
Roger Stafford il 25 Giu 2017
Modificato: Roger Stafford il 25 Giu 2017
It means that every element in array x that equals c1 is replaced by the value 127.

Più risposte (0)

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by