Using a method size in a Class without making class objects it into an array
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Structures finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!