mardi 11 septembre 2018

Get Class property by its name

Is it possible to reach a Class Property by its name dynamically?

classdef ClassA < handle        
    properties
        a
    end        
end

obj = ClassA;
obj.GetVar('a') = 10;

Is there something like GetVar('a')?





Aucun commentaire:

Enregistrer un commentaire