How to use logical indexing to change certain values in matrix

9 Ansichten (letzte 30 Tage)
Sam Grassie
Sam Grassie am 24 Nov. 2015
Beantwortet: dpb am 25 Nov. 2015
I am trying to use logical indexing to change all elements=112 in a matrix into 225. How do I write a code for this. Any help hugely appreciated thanks in advance

Antworten (1)

dpb
dpb am 25 Nov. 2015
x(x==112)=225;

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by