How to use logical indexing to change certain values in matrix

9 visualizaciones (últimos 30 días)
Sam Grassie
Sam Grassie el 24 de Nov. de 2015
Respondida: dpb el 25 de Nov. de 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

Respuestas (1)

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

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by