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!