title: How to open a mat file in python
body: <p>I was trying to open a mat file in python but my attempts did fail.
  Here is my code</p>
  
  <pre><code>from  scipy import *
  from  pylab import *
  
  
  save('rfdata.mat')
  import scipy.io as sio
  mat = scipy.io.loadmat('rfdata.mat');
  </code></pre>
  
  <p>python says that : </p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Users\Ali\.spyder2-py3\template.py", line 14, in &lt;module&gt;
      mat = scipy.io.loadmat('rfdata.mat');
  NameError: name 'scipy' is not defined
  </code></pre>
  
  <p>EDIT: I removed all code above and wrote  </p>
  
  <pre><code>import scipy.io as sio
  mat = sio.io.loadmat('rfdata.mat');
  </code></pre>
  
  <p>still does not work</p>
  
  <p>I appreciate your help</p>
  
  <p>Thanks</p>