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

 Accepted Answer

More Answers (0)

Categories

Tags

Community Treasure Hunt

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

Start Hunting!