title: Reading mat file error with R.matlab & rmatio
body: <p>I am trying to read a .mat file using either R.matab or rmatio and I am receiving an error that I do not understand.</p>
  
  <p>With R.matlab, I receive the following error:</p>
  
  <blockquote>
    <p>Error in mat5ReadArrayFlags(this) :    Unknown array type (class). Not
    in [1,15]: 17</p>
  </blockquote>
  
  <p>My R code is:</p>
  
  <pre><code> path&lt;-('C:/Bita/data')
      pathname &lt;- file.path(path, "EuropeStockLevelWorkspaceStyleCountryAlpha.mat")
      dfEuropeStyleCountry &lt;- readMat(pathname)
  </code></pre>
  
  <p>With rmatio, I receive the following error:</p>
  
  <blockquote>
    <p>Error in read.mat(pathname) :    InflateDimensions: Reading dimensions
    expected type MAT_T_INT32</p>
  </blockquote>
  
  <p>My R code:</p>
  
  <pre><code> path&lt;-('C:/Bita/data')
      pathname &lt;- file.path(path, "EuropeStockLevelWorkspaceStyleCountryAlpha.mat")
      dfEuropeStyleCountry&lt;-read.mat(pathname)
  </code></pre>
  
  <p>My .mat file is too huge and I have no way to post its structure as I do not have access to its structure.</p>