Replacing elements in an array

83 visualizzazioni (ultimi 30 giorni)
Vadim Tambovtsev
Vadim Tambovtsev il 26 Set 2016
Modificato: michio il 26 Set 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.

Risposta accettata

michio
michio il 26 Set 2016
Modificato: michio il 26 Set 2016

Più risposte (0)

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by