The following are the state matrices A and B obtained by linearization using SystemModelLinearize ("DocumentationExamples. Modeling. Generator" is the circuit given by the official routine). I want to change this type of variable(Quantity variable) in the matrix to a variable that can be assigned(R1、R2、L), or to a variable that we define ourselves. What should I do?
If the case cannot run normally, you can open the website(https://reference.wolfram.com/language/ref/SystemModelLinearize.html.zh). The case is probably in the middle of the page.The bottom picture is the case shown.
spacemodel =
SystemModelLinearize["DocumentationExamples.Modeling.Generator",
Method -> {"SymbolicDerivative",
"SymbolicParameters" -> {"R1", "R2", "L"}}]
R1 = 10;
R2 = 20;
L = 0.02;
A = spacemodel[[1, 1]]
B = spacemodel[[1, 2]]
SystemModelLinearize::bld: Failed to build model DocumentationExamples.Modeling.Generator.
V 13.1 Where is this thing called"DocumentationExamples.Modeling.Generator"
?? $\endgroup$SystemModelLinearize::bld: Failed to build model DocumentationExamples.Modeling.InvertedPendulum.Components.DCMotor.
V 13.1 on windows. !Mathematica graphicsSystemModelLinearize::bld: Failed to build model DocumentationExamples.Modeling.InvertedPendulum.Components.DCMotor.
$\endgroup$