Skip to content

undefined methods for MxArrays.MxArray type #55

Open
@agbondy

Description

I'm using mexjulia to call a julia function "compute_LL.jl" from matlab which takes a dict as an input. I'm passing it a Matlab struct, which gets converted sensibly to a dict but its fields, which are just arrays of doubles and logicals, get converted into MxArrays.MxArray which somehow no methods seem to be defined for. I think this type should inherit all the functionality of MATLAB.MxArray types but basic methods which are defined for those (I've tried length, subscript indexing) throw an "undefined method" error. I'm using Julia 0.6 and Matlab R2017a on a PC running Windows 10. I'm attaching the Julia module "DriftDiffusison" which contains the function compute_LL which I am calling.

When I call this function, I get: "MethodError: no method matching length(::MxArrays.MxArray)" on line 29 of the module.

The struct getting passed to this function looks like:

struct with fields:

   pokedR: [7487×1 logical]
 leftbups: {7487×1 cell}
rightbups: {7487×1 cell}
        T: [7487×1 double]

DriftDiffusion.zip

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions