Replacing elements in an array

62 次查看(过去 30 天)
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.

采纳的回答

michio
michio 2016-9-26
编辑:michio 2016-9-26

更多回答(0 个)

产品

Community Treasure Hunt

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

Start Hunting!

Translated by