Main Content

copy

Create deep copy of mpnetSE2 object

Since R2023b

    Description

    example

    mpnet2 = copy(mpnet1) creates a deep copy of the specified mpnetSE2 object.

    Note

    To run this function, you will require the Deep Learning Toolbox™.

    Examples

    collapse all

    Create an mpnetSE2 object with default properties.

    data_1 = mpnetSE2
    data_1 = 
      mpnetSE2 with properties:
    
         StateBounds: [3x2 double]
         LossWeights: [1 1 1]
        EncodingSize: [10 10]
           NumInputs: 108
          NumOutputs: 4
             Network: [1x1 dlnetwork]
    
    

    Create a copy of the first instance of the mpnetSE2 object.

    data_2 = copy(data_1);

    Verify that both the objects are the same by comparing their property values.

    isequal(data_1,data_2)
    ans = logical
       1
    
    

    Input Arguments

    collapse all

    MPNet object, specified as an mpnetSE2 object.

    Output Arguments

    collapse all

    Copy of MPNet object, returned as an mpnetSE2 object.

    Extended Capabilities

    C/C++ Code Generation
    Generate C and C++ code using MATLAB® Coder™.

    Version History

    Introduced in R2023b

    See Also

    Objects

    Functions