Not able to change RTWInfo properties
Afficher commentaires plus anciens
Hi
I am using MATLAB R2011b with ECoder. I am trying to modify the RTWInfo property of my class using:
h = mypackage.Parameter % Derived from mpt.Parameter
h.RTWInfo = mypackage.RTWInfoParamer % Derived from mpt.CustomRTWInfoParameter.
the above statement gives me an error saying that 'Changing the RTWInfo property of Simulink.Data isi not allowed.
What am I doing wrong and how do I change the RTWinfo property with my derive class?.
Réponses (2)
Fangjun Jiang
le 9 Nov 2011
RTWInfo is a built-in class. If you've customized that class, you probably need to do
h = mypackage.Parameter;
h.RTWInfoParamer=something;
Allwyn
le 9 Nov 2011
0 votes
1 commentaire
Fangjun Jiang
le 9 Nov 2011
Then, maybe in your customization of mypackage class, you need to specify 'mypackage.RTWInfoParamer' as the default sub-class or allowed sub-class for 'RTWInfo'
Catégories
En savoir plus sur Functional Programming dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!