# Error in "using MAT"

**URL:** <https://discourse.julialang.org/t/error-in-using-mat/14143>\
**Category:** New to Julia\
**Tags:** matlab\
**Created:** [August 27, 2018, 3:47pm UTC](https://discourse.julialang.org/t/error-in-using-mat/14143 "2018-08-27T15:47:48Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![jaakkor2](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jaakkor2/32/2540_2.png) [@jaakkor2](https://discourse.julialang.org/u/jaakkor2)\
**Post date:** [October 1, 2018, 6:28am UTC](https://discourse.julialang.org/t/error-in-using-mat/14143/5 "2018-10-01T06:28:07Z")

</div>

The issue is that MAT.jl has not been updated to Julia v1.0. There are already many overlapping PRs at [Pull requests · JuliaIO/MAT.jl · GitHub](https://github.com/JuliaIO/MAT.jl/pulls) but even the master branch looks a bit stalled.

See

> [@Syntax issue in MAT package](https://discourse.julialang.org/t/syntax-issue-in-mat-package/14843):
>
> In the MAT\_v5.jl of MAT Package, I’ve seen the following definition type Matlabv5File \<: HDF5.DataFile ios::IOStream swap\_bytes::Bool varnames::Dict{String, Int64} Matlabv5File(ios, swap\_bytes) = new(ios, swap\_bytes) end But after I went through the julia syntax documentation, I didn’t find any that can define a composite type using “type…end”. Isn’t is supposed to be “struct…end”? Does the author of the package define his own keyword? Could any explain this? Thanks.

The discourse tags “Usage” and “First steps” are a bit misleading.

---

_[View the full topic](https://discourse.julialang.org/t/error-in-using-mat/14143)._
