mustBeMember validation problem failure
12 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
This class fails property validation on construction
classdef validationTester
properties
coupling (1,:) char {mustBeMember(coupling,{'DC', 'AC'})} = 'DC'
end % public properties
end % classdef
with message
>> vt = validationTester
Error setting default value of property 'coupling' of class 'validationTester'. Value must be a
member of this set:
'DC'
'AC'
Why is this?
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Properties dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!