Matrix value comparison of values

I have two surfaces in matrix form 200x200, M1 and M2. I want to set all values in M1 to NaN if they are higher than the corresponding values in M2. How would i go about this?
Thanks,
Luke

 Respuesta aceptada

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 12 de Abr. de 2016

Editada:

el 12 de Abr. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by