Customize indexed reference and assignment behavior for object arrays. Although user-defined classes possess the same indexing behavior as built-in MATLAB® classes, you can modify this behavior when your class has special requirements.
There are code patterns useful for modifying object indexing.
Classes that modify object array indexing must handle the correct number of arguments retrurned from or passed to indexing methods.
Modify the number of arguments passed to or returned from indexing methods.