title: Binary to DNA encoding
body: <p>I have an 8 bit binary sequence. I need to encode this 8 bit binary sequence into DNA sequence.</p>
  
  <p>E.g., I have <code>10011100</code>, the encoding rule I'm following is,</p>
  
  <pre><code>A=00;T=11;G=10;C=01,
  </code></pre>
  
  <p>So I want it to be something like <code>GCTA</code>. Therefore I need 4 bit DNA sequence as result.</p>
  
  <p>I need to do this for a 256 * 256 matrix where each element is an 8 bit binary sequence.</p>
  
  <p>I've created the matrix using the following code</p>
  
  <pre><code>a=imread('C:\Users\Desktop\lena.png');
  disp(a);
  imshow(a);
  for i=1:1:256
      for j=1:1:256
          b{i,j,1} = dec2bin(a(i,j),8);
      end
  end 
  disp(b)
  </code></pre>