How to create some matrixs from one matrix
===

I need your help to solve my problem.

I have matrix A 

    A= [0 0 2 2 2 2 0 0 1 1 1 0 3 3;
        2 2 2 2 0 0 1 1 1 0 0 3 3 0;

   
And I want to make some matrix from matrix A,
then I want to have result like matrix below :

    Matrix 1 = [ 0 0 0 0 0 0 0 0 3 2 1 0 0 0;
                 0 0 0 0 0 0 0 3 2 1 0 0 0 0]
    
    Matrix 2 = [ 0 0 4 3 2 1 0 0 0 0 0 0 0 0;
                 4 3 2 1 0 0 0 0 0 0 0 0 0 0]
  
And the last
    
    Matrix 3 = [ 0 0 0 0 0 0 0 0 0 0 0 0 2 1;
                 0 0 0 0 0 0 0 0 0 0 0 2 1 0]

Why do I have 3 matrix result, because matrix A has 3 as the biggest value there.
Please, help me guys.
thank a lot before.
