Main Content


Horizontal concatenation of two sensing dictionaries



    Anew = horzcat(A,B) creates a custom sensing dictionary by appending the columns in B after the columns in A. The dictionaries A and B must have the same number of rows.

    Anew = [A,B] is equivalent to Anew = horzcat(A,B).


    collapse all

    Create two sensing dictionaries of size 100-by-100. Set the basis type of one dictionary to 'dct' and to 'walsh' for the other dictionary.

    A = sensingDictionary(Type={'dct'});
    B = sensingDictionary(Type={'walsh'});

    Concatenate the two sensing dictionaries.

    C = [A B]
    C = 
      sensingDictionary with properties:
                    Type: {'dct'  'walsh'}
                    Name: {''  ''}
                   Level: [0 0]
        CustomDictionary: []
                    Size: [100 200]

    Extract the entire matrix from sensing dictionary C. Visualize the matrix.

    Cmat = subdict(C,1:C.Size(1),1:C.Size(2));
    axis equal
    axis tight
    colormap gray

    Figure contains an axes object. The axes object contains an object of type image.

    Input Arguments

    collapse all

    Sensing dictionary, specified as a sensingDictionary object.

    Sensing dictionary, specified as a sensingDictionary object.

    Data Types: single | double
    Complex Number Support: Yes

    Output Arguments

    collapse all

    Sensing dictionary, returned as a sensingDictionary object. Depending on A and B, Anew has the following properties:

    • sensingDictionary A, matrix B:

      • Anew.Type = {A.type,'custom'}

      • Anew.CustomDictionary = [A.CustomDictionary B]

    • sensingDictionary A, sensingDictionary B:

      • Anew.Type = {A.Type,B.Type}

      • Anew.CustomDictionary = [A.CustomDictionary B.CustomDictionary]

    Version History

    Introduced in R2022a