Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

clone

Copy online parameter estimation System object

Syntax

obj_clone = clone(obj)

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
                      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
                      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.

Introduced in R2015b

Was this topic helpful?