## Modelica_LinearSystems2.Utilities.Import.Examples

Demonstrate the usage of the Import functions

### Package Content

Name | Description
--- | ---
linearizeDoublePendulum | Linearize double pendulum
Utilities |

## Modelica_LinearSystems2.Utilities.Import.Examples.linearizeDoublePendulum

Linearize double pendulum

### Outputs

Type | Name | Description
--- | --- | ---
Real | A[:, :] | A-matrix
Real | B[:, :] | B-matrix
Real | C[:, :] | C-matrix
Real | D[:, :] | D-matrix
String | inputNames[:] | Modelica names of inputs
String | outputNames[:] | Modelica names of outputs
String | stateNames[:] | Modelica names of states

### Modelica definition

    function linearizeDoublePendulum "Linearize double pendulum"
      output Real A[:,:] "A-matrix";
      output Real B[:,:] "B-matrix";
      output Real C[:,:] "C-matrix";
      output Real D[:,:] "D-matrix";
      output String inputNames[:] "Modelica names of inputs";
      output String outputNames[:] "Modelica names of outputs";
      output String stateNames[:] "Modelica names of states";
    algorithm
      (A,B,C,D,inputNames,outputNames,stateNames) :=
        Modelica_LinearSystems2.Utilities.Import.linearize("Modelica_LinearSystems2.Utilities.Import.Examples.Utilities.DoublePendulum",
        1.0);
    end linearizeDoublePendulum;