@vv I appreciate you taking the time to respond to my comment. Your solution is nice and perfect and not only is useful for this question, but also can be used for other commands of generic package.
I would like to ask you to help me in the next question which is the my last question. I attached a new maple file. In the new Maple file, there is an 8x16 matrix over GF(2,4) which is denoted with H. I used the matrix H as a parity-check matrix of a code and observe that H produces the [16,8,7] code which means the minimum number of linearly dependent columns of H over G is 7. But when I test the matrix H with your given solution I got 8 for the rank of matrix. Where is my mistake. In other words, how to obtain the minimum number of linearly dependent columns of H with your given solution.
Excuse me that I ask too questions. I am a TA of coding and I would like to implement the concept of coding with Maple.