Replacing elements in an array

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.

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Multidimensional Arrays 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by