How do I restrict the data in a matrix, so that it accepts empty data or numbers greater than '0', that is, it meets any of the conditions

Maybe this post discussed previously should help you get your answer: