Mask a 2D MRSI dataset in the x-y dimension.
mask_xy_mat(mrs_data, mask, value = NA)
MRS data object.
matrix of boolean values specifying the voxels to mask, where a value of TRUE indicates the voxel should be removed.
the value to set masked data to (usually NA or 0).
masked dataset.