Code generation and class handle
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am using Matlab Coder and I got the following error : "In code generation, an existing instance of a handle class handle can only be assigned to a local variable or function ouput"
I got this error because I wanted to store as a class property a handle on another class. I wanted to do so to be able to keep a reference on a class for future use which is very classical ...
Do you know a workaround ?
0 commentaires
Réponse acceptée
Arnab De
le 6 Sep 2012
Currently in MATLAB Coder, handle objects can be assigned to class properties only in the constructor of the class. This restriction will be removed in future releases.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur MATLAB Coder dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!