Skip to content

Conversation

@matthijscox
Copy link
Contributor

My attempt to solve #206 and allow struct array writing in HDF5 mat files.

Changes:

  • defines m_write for AbstractArray{<:AbstractDict} as interface for struct arrays
  • refactor cell array writing (m_write for AbstractArray{T}) to have common reference writing
  • added readme example

@matthijscox
Copy link
Contributor Author

Defined the MatlabStructArray type to enabled read-write consistency of struct arrays for v7.3 mat files. I'm trying to keep the type as backwards compatible as possible with the previous Dict{String,Any} type that contains arrays in the field, yet also allow easy conversion to arrays of dicts which is similar to cell array behavior.

I don't know yet how to distinguish this struct array in mat versions before v7.3.

@matthijscox matthijscox merged commit d5feb5b into JuliaIO:master Nov 17, 2025
8 checks passed
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

Successfully merging this pull request may close these issues.

2 participants