title: Find all differences between .mat files
body: <p>I am looking for a way to list the differences between two .mat files, something that can be usefull for many people.</p>
  
  <p>Though I searched everywhere I could think of, I have not found anything that meets my requirements:</p>
  
  <ol>
  <li>Pick 2 mat files</li>
  <li>Find the differences</li>
  <li>Save them properly</li>
  </ol>
  
  <p>The closest I have come is <code>visdiff</code>. As long as I stay within matlab, it will allow me to browse the differences, but when I save the result it only shows me the top level.</p>
  
  <hr>
  
  <p>Here is a simplified example of what my files typically look like:</p>
  
  <pre><code>a = 6;
  b.c.d = 7;
  b.c.e = 'x';
  save f1
  f = a;
  clear a
  b.c.e = 'y';
  save f2
  visdiff('f1.mat','f2.mat')
  </code></pre>
  
  <p>If I click here on <code>b</code>, I can find the difference. However if I run this and use 'file>save', I am not able to click on <code>b</code>. Thus I still don't know what has been changed.</p>
  
  <p>Note: I don't have Simulink</p>
  
  <hr>
  
  <p>Hence my question is:</p>
  
  <p><strong>How can I show all differences between 2 mat files to someone without Matlab</strong></p>
  
  <hr>
  
  <p>Here are the answers that I personally consider to be most suitable for different situations:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/a/19136168/983722">Answer for users with Simulink</a></li>
  <li><a href="https://stackoverflow.com/a/19446308/983722">General answer</a></li>
  <li><a href="https://stackoverflow.com/a/19136535/983722">Answer displaying all value differences</a></li>
  </ul>