Contents

copy

Copy operating point or operating point specification

Syntax

op_point2=copy(op_point1)
op_spec2=copy(op_spec1)

Description

op_point2=copy(op_point1) returns a copy of the operating point object op_point1. You can create op_point1 with the function operpoint.

op_spec2=copy(op_spec1) returns a copy of the operating point specification object op_spec1. You can create op_spec1 with the function operspec.

    Note   The command op_point2=op_point1 does not create a copy of op_point1 but instead creates a pointer to op_point1. In this case, any changes made to op_point2 are also made to op_point1.

Examples

Create an operating point object for the model, magball.

opp=operpoint('magball')

The operating point is displayed.

 Operating Point for the Model magball.
 (Time-Varying Components Evaluated at time t=0)

States: 
----------
(1.) magball/Controller/PID Controller/Filter
      x: 0            
(2.) magball/Controller/PID Controller/Integrator
      x: 14           
(3.) magball/Magnetic Ball Plant/Current
      x: 7            
(4.) magball/Magnetic Ball Plant/dhdt
      x: 0            
(5.) magball/Magnetic Ball Plant/height
      x: 0.05         
 
Inputs: None 
----------

Create a copy of this object, opp.

new_opp=copy(opp)    

An exact copy of the object is displayed.

Operating Point for the Model magball.
 (Time-Varying Components Evaluated at time t=0)

States: 
----------
(1.) magball/Controller/PID Controller/Filter
      x: 0            
(2.) magball/Controller/PID Controller/Integrator
      x: 14           
(3.) magball/Magnetic Ball Plant/Current
      x: 7            
(4.) magball/Magnetic Ball Plant/dhdt
      x: 0            
(5.) magball/Magnetic Ball Plant/height
      x: 0.05         
 
Inputs: None 
----------
Was this topic helpful?