Skip to content

Function handle support #221

@matthijscox

Description

@matthijscox

We don't error anymore on function handles since MAT v0.11, but let's remember to provide good read-write support at some point:

Current behavior:

julia> sin_f = matread("test/v7.3/function_handles.mat")["sin"]
Dict{String, Any} with 4 entries:
  "function_handle" => Dict{String, Any}("function"=>"sin", "file"=>"", "type"=>"simple")
  "sentinel"        => '@'
  "separator"       => '/'
  "matlabroot"      => "/opt/MATLAB/R2018b"

julia> anon = matread("test/v7.3/function_handles.mat")["anonymous"]
Dict{String, Any} with 4 entries:
  "function_handle" => Dict{String, Any}("function"=>"sf%0@(x)x", "workspace"=>MatlabOpaque("any"=>Any[MatlabOpaque(); Dict{String, Any}();;]), "file"=>"", "within_file_path"=>"__base_function", "ty…
  "sentinel"        => '@'
  "separator"       => '/'
  "matlabroot"      => "/opt/MATLAB/R2018b"

When we write these, you get a struct in MATLAB.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions