Write a program that determines the rank of a matrix expression
I have posed a question here regarding the determination of the rank of a matrix expression, which has yet to receive a complete answer. Therefore, I attempted to symbolically define these matrices in MATLAB for a specific case (N=n=3, m=p=1) and wrote a program to calculate their rank, hoping this would provide insights for determining the rank of the matrix expression. Since I was not successful in this attempt, I provide my code in hopes of receiving guidance.