Skip to content

How do I load a mat file in python by python-matlab-bridge? #129

@willard-yuan

Description

@willard-yuan

Recently, I want to load a mat file in python by python-matlab-bridge, not in a matlab function file since the mat file is very large. If I load the mat file in the matlab function, the process of loading the mat file will do every time when I call the function. This will cost much time. So how do I load a mat file in python by python-matlab-bridge?

In the matlab command windows, to load a mat file, we use load('a.mat'). I have tried to load it by mlab.run_code(), but it fails.

Please help me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions