Skip to main content
. 2024 Jul 16;26(7):603. doi: 10.3390/e26070603
Algorithm 2 Generating measurement matrices using 2D hyperchaotic map.
Input: Parameters of the hyperchaotic system a,b; initial values of the system state x0,y0; number of rows of the image matrix: N; compressed sensing parameter: subrate.
Output: Two measurement matrices: Φ1 and Φ2.
  • 1:

    Initialize two one-dimensional arrays U and V of size N×N;

  • 2:

    Let U(1)=x0 and V(1)=y0;

  • 3:

    for i=2:N×N do

  • 4:

       U(i)=sin2(aπU(i1)+bV(i1));

  • 5:

       V(i)=cos2(bπ/V(i1)+aU(i1));

  • 6:

    end for

  • 7:

    U=reshape(U,N,N);

  • 8:

    V=reshape(V,N,N);

  • 9:

    M=round(subrate×N);

  • 10:

    Φ1=orth(U); Φ1=Φ1(1:M,:);

  • 11:

    Φ2=orth(V); Φ2=Φ2(1:M,:);