dotReference
自定义以点开头的对象索引引用的处理
语法
varargout = dotReference(obj,indexOp)
说明
处理以点开头的索引引用操作,并对不可访问或不存在的字段进行索引,如 varargout
= dotReference(obj
,indexOp
)obj.PrivateProp
或 obj.NotAProp{1}(2)
。该方法返回 obj
中的索引值。indexOp
对象包含被引用的索引。
输入参数
输出参量
示例
有关实现自定义点索引的标量结构体类的示例,请参阅 matlab.mixin.indexing.RedefinesDot
。
版本历史记录
在 R2012b 中推出