Using a method size in a Class without making class objects it into an array
이전 댓글 표시
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
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!