When scripting Matrix questions, it is possible to set selected rows or columns as exclusive.
Within a single matrix question, exclusivity can be applied either to row(s) or to column(s). It is not possible to apply exclusive settings to both rows and columns simultaneously within the same question.