Replacing elements in an array

62 vues (au cours des 30 derniers jours)
Vadim Tambovtsev
Vadim Tambovtsev le 26 Sep 2016
Modifié(e) : michio le 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.

Réponse acceptée

michio
michio le 26 Sep 2016
Modifié(e) : michio le 26 Sep 2016

Plus de réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by