%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Mask the data due to the corresponding bathymetry %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function masked_data = createDataMask(matrix_data, bathymetry_data)


n1 = size(matrix_data, 1);
n2 = size(matrix_data, 2);
masked_data = matrix_data;

for i=1:n1
    
    for j=1:n2
        
        if(bathymetry_data(i, j) > 0)
            
            masked_data(i, j) = NaN;
            
        end
        
    end
    
end
