Use Matrix(Matrix == x) = y; on cell aray
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Jakub Matousek
el 28 de Oct. de 2017
Comentada: Jakub Matousek
el 28 de Oct. de 2017
Hello, is there a way to use some sort of this cellarray{:}(cellarray{:} == 2) = [1 1 1]; for cell array of ints? Cant really find it anywhere. Don't want to use any for loops into switch statements...
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Shifting and Sorting Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!