Why do I encounter the error "AttributeError: 'matlab.object' object has no attribute 'getBalance'" when using a MATLAB class compiled as a Python package?
Show older comments
Is it possible to compile a MATLAB class into a Python package, create an instance of that class in Python, and use its methods?
I have successfully compiled a class into a Python package, installed the package in Python, initialized the package, and created an object of the class by calling the constructor.
However, I am unable to use any of the methods of the created class object. I receive the error
"AttributeError: 'matlab.object' object has no attribute 'getBalance',"
where "getBalance" is one of the class methods.
Is there a way to use the methods of the class, or is this not possible?
Accepted Answer
More Answers (0)
Categories
Find more on Python Package Integration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!