Using a method size in a Class without making class objects it into an array
Mostra commenti meno recenti
Hi!
I'm working with a class with a property data and want to construct a method that checks the size of the data: NewClassObject.size. However when I implement this the object becomes an 'array', which seems to change how my subsref indexing () works:
without size():
NewClassObject =
NewClass with properties:
...
with size():
NewClassObject =
5x1 NewClass array with properties:
...
Is there anyway to name a method size without anything else changing?
The class is too big to post here and I have no good way of reducing it at the moment. But maybe some of you might have an answer anyway?
Thanks!
Cecilia
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Structures in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!