Replacing elements in an array

62 views (last 30 days)
Vadim Tambovtsev
Vadim Tambovtsev on 26 Sep 2016
Edited: michio on 26 Sep 2016
Didn't find a relevant answer.
Suppose we have an array
R=[1 2 1 2 2 2]';
How to replace "2" with "4" ?
Thank you.

Accepted Answer

michio
michio on 26 Sep 2016
Edited: michio on 26 Sep 2016

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!