MATLAB.jl icon indicating copy to clipboard operation
MATLAB.jl copied to clipboard

Tuples converted to MATLAB structs

Open jebej opened this issue 5 years ago • 0 comments

It seems that tuples are currently being converted to structs, which is wrong. I think it makes more sense to convert tuples to cell arrays. Thoughts?

julia> jvalue(mxarray((2.5,2.6)))
Dict{String,Any} with 1 entry:
  "2.5" => 2.6

As an aside, the reason this happens is because of a default fallback: https://github.com/JuliaInterop/MATLAB.jl/blob/6e859c1a126b345662b0282a70c9c0c89d9a2762/src/mxarray.jl#L474

Maybe this should be changed, it doesn't seem like a great choice.

jebej avatar Nov 02 '20 16:11 jebej