Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot write Char array #143

Open
lstagner opened this issue Sep 16, 2020 · 0 comments
Open

Cannot write Char array #143

lstagner opened this issue Sep 16, 2020 · 0 comments

Comments

@lstagner
Copy link

julia> using MAT

julia> a = fill(' ',(3,3))
3×3 Array{Char,2}:
 ' '  ' '  ' '
 ' '  ' '  ' '
 ' '  ' '  ' '

julia> matwrite("test.mat",Dict("a"=>a))
ERROR: This is the write function for CompositeKind, but the input doesn't fit
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] m_write(::MAT.MAT_HDF5.MatlabHDF5File, ::HDF5.HDF5Group, ::String, ::Char) at /Users/lstagner/.julia/packages/MAT/XPntV/src/MAT_HDF5.jl:529
 [3] m_write(::MAT.MAT_HDF5.MatlabHDF5File, ::HDF5.HDF5File, ::String, ::Array{Char,2}) at /Users/lstagner/.julia/packages/MAT/XPntV/src/MAT_HDF5.jl:478
 [4] write(::MAT.MAT_HDF5.MatlabHDF5File, ::String, ::Array{Char,2}) at /Users/lstagner/.julia/packages/MAT/XPntV/src/MAT_HDF5.jl:545
 [5] #matwrite#4(::Bool, ::typeof(matwrite), ::String, ::Dict{String,Array{Char,2}}) at /Users/lstagner/.julia/packages/MAT/XPntV/src/MAT.jl:157
 [6] matwrite(::String, ::Dict{String,Array{Char,2}}) at /Users/lstagner/.julia/packages/MAT/XPntV/src/MAT.jl:148
 [7] top-level scope at REPL[36]:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant