Open no-clue-what-to-do opened 4 years ago
I don't think oct2py support calling .m class as python object. What you can do is make your .m file as function with input and output. Then, use oct2py to pass an input and fetch the output. See conversion of data between python and octave.
I'm trying to run a basic MATLAB script that defines a class, and get that class object returned to python. I don't know MATLAB well, and am very new to Oct2Py so I may be completely misunderstanding how to do this. Any help would be greatly appreciated.
Here is the Matlab file (taken from here)
And I call this in the python script with the following
when I run this I get a warning that prints four times and then an error message
First:
warning: struct: converting a classdef object into a struct overrides the access restrictions defined for properties. All properties are returned, including private and protected ones.
And then:
TypeError: 'NoneType' object is not iterable
I don't have any trouble running the roundtrip example from the Oct2Py page, so I know my installation is fine