Question: Linearization tool in API

MapleSim already developed a Template for Linearization.

The code behind "Linearize" button in the Linearization template is as follows:

"MapleSim:-Templates:-Linearization:-Linearize();"

The results, namely A,B,C,D matrices in the state-space presentation, are shown in the text area "mcEqs".

How can I save these matrices to some variables for further analysis?

In addition, without the linearization template, What is the API command of linearizing a MapleSim model?

For example, in order to get equations of motion in API, we run the following codes:

"

A := MapleSim:-LinkModel():

ret := A:-GetEquations('output' = 'all', 'filter' = {}, 'simplify' = true):

DAEs := ret[1];

"

thank you in advance.

Please Wait...