title: H5 vs Mat-File Matlab
body: <p>I was wondering why a h5 file takes larger space in the harddisk than a normal mat file while the contents are same.
  I always thought the h5 is the sort of compressed one. 
  The details are below</p>
  
  <p>Using a Matlab 2014b in a 64 bit linux-ubuntu</p>
  
  <p>code 1:</p>
  
  <pre><code>clear,clc
  h5create('myfile.h5','/DS1',[900 9000]);
  mydata = rand(900,9000);
  h5write('myfile.h5', '/DS1', mydata);
  data = h5read('myfile.h5','/DS1');
  </code></pre>
  
  <p>code 2</p>
  
  <pre><code>clear,clc
  a=rand(900,9000);
  save a a;
  </code></pre>
  
  <p>The size of the mat file is 2 mb less than the h5 file (61 mb), are there any flags that I am ignoring for h5 saving process?</p>