使用构造函数设置状态空间验证器的名称并指定状态空间对象。如果未提供一个状态空间,请为状态空间设置默认值。调用基类的构造函数。初始化任何其他用户定义的属性。此示例使用默认MyCustomStateSpace,,,,which was illustrated in the previous example.
methodsfunctionobj = mycustomStateValidator(Space)Narginchk(0,1)如果nargin == 0 space = MyCustomStateSpace;结尾obj@nav.StateValidator(space);%初始化用户定义的属性结尾
复制语义
Specify thecopymethod definition. Copy all the values of your user-defined variables into a new object, socopyObjis a deep copy. The default behavior given in this example creates a new copy of the object with the same type.