Replace corresponding elements in two different matrices
Show older comments
I have two matrices A and B. The matrix A contains missing data (shown as -9999) which I have replaced with NaN. Matrix B has no missing data. I want to replace the corresponding elements in B with NaN as well so the NaNs for both matrices are located in the same cells. How can I do that?
Accepted Answer
More Answers (0)
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!