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?
MATLAB: Replace corresponding elements in two different matrices
arrayelementMATLABreplace
Best Answer