Main Content

clone

Copy online parameter estimation System object

Description

example

obj_clone = clone(obj) creates a copy of the online parameter estimation System object™, obj, with the same property values. If the object you clone is locked, the new object is also locked.

clone is not supported for code generation using MATLAB® Coder™.

Note

If you want to copy an existing System object and then modify properties of the copied object, use the clone command. Do not create additional objects using syntax obj2 = obj. Any changes made to the properties of the new System object created this way (obj2) also change the properties of the original System object (obj).

Examples

collapse all

Create a System object™ for online estimation of an ARX model with default properties.

obj = recursiveARX
obj = 
  recursiveARX with properties:

                             A: []
                             B: []
                      InitialA: [1 2.2204e-16]
                      InitialB: [0 2.2204e-16]
           ParameterCovariance: []
    InitialParameterCovariance: [2x2 double]
              EstimationMethod: 'ForgettingFactor'
              ForgettingFactor: 1
              EnableAdaptation: true
                       History: 'Infinite'
               InputProcessing: 'Sample-based'
                      DataType: 'double'

Use clone to generate an object with the same properties as the original object.

obj2 = clone(obj)
obj2 = 
  recursiveARX with properties:

                             A: []
                             B: []
                      InitialA: [1 2.2204e-16]
                      InitialB: [0 2.2204e-16]
           ParameterCovariance: []
    InitialParameterCovariance: [2x2 double]
              EstimationMethod: 'ForgettingFactor'
              ForgettingFactor: 1
              EnableAdaptation: true
                       History: 'Infinite'
               InputProcessing: 'Sample-based'
                      DataType: 'double'

Input Arguments

collapse all

System object for online parameter estimation, created using one of the following commands:

Output Arguments

collapse all

Copy of online estimation System object, obj, returned as a System object with the same properties as obj.

Version History

Introduced in R2015b