MATLAB Answers

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

26 views (last 30 days)
Kei Manabe
Kei Manabe on 25 Jun 2017
Edited: Roger Stafford on 25 Jun 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.

Accepted Answer

Roger Stafford
Roger Stafford on 25 Jun 2017
Edited: Roger Stafford on 25 Jun 2017
It means that every element in array x that equals c1 is replaced by the value 127.
  1 Comment
Kei Manabe
Kei Manabe on 25 Jun 2017
Thank you very much.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!