Change attributes of object handles from python in Matlab

4 visualizaciones (últimos 30 días)
Eduardo Villalobos
Eduardo Villalobos el 18 de Jun. de 2019
Hello,
is there any possibility of updating/changing the attributes of a Matlab object handle from python without creating a set function?
I mean, to read the attributes it can be done using the wrokspace as follows:
eng.workspace['wx'] = x
height = eng.eval['wx.height']
This will return the height of the object x. Is there any other way of changing the height? I ask this because I should not change the script from which I am using the values and objects
Thanks!

Respuestas (0)

Categorías

Más información sobre Call Python from MATLAB en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by