title: Alternative to dec2hex in MATLAB?
body: <p>I am using <code>dec2hex</code> up to 100 times in MATLAB. Because of this, the speed of code decreases. for one point I am using <code>dec2hex</code> 100 times. It will take 1 minute or more than it. I have do the same for 5000 points. But because of <code>dec2hex</code> it will take hours of time to run. So how can I do hexadecimal to decimal conversion optimally? Is there any other alternative that can be used instead of <code>dec2hex</code>?</p>
  
  <p>As example:</p>
  
  <pre><code>%%Data[1..256]: can be any data from 
  for i=1:1:256
  Table=dec2hex(Data);
  %%Some permutation applied on Data
  end;
  </code></pre>
  
  <p>Here I am using <code>dec2hex</code> more than 100 times for one point. And I have to use it for 5000 points.</p>
  
  <p>Data =</p>
  
  <pre><code> Columns 1 through 16
  
   105   232    98   250   234   216    98   199   172   226   250   215   188    11    52   174
  
   Columns 17 through 32
  
   111   181    71   254   133   171    94    91   194   136   249   168   177   202   109   187
  
   Columns 33 through 48
  
    232   249   191    60   230    67   183   122   164   163    91    24   145   124   200   142
  </code></pre>
  
  <p>This kind of data My code will use.</p>