I would like to perform a change of variables on the following dynamics system:
system = NonlinearStateSpaceModel[{{y1'[t] == y2[t],
y2'[t] == -theta[t]^2 y1[t] +
theta'[t] y2[t]/theta[t]}, {alpha1 y1[t] + alpha2 y2[t]}}, {y1[
t], y2[t]}, {}]
The change of variables would be: y2[t] -> theta[t] y3[t]. While I could easily see what would be the outcome by hand, I don't see why this command would not return anything with Mathematica:
StateSpaceTransform[system, {{y2[t] -> theta[t] y3[t]}, {y3[t] ->
y2[t]/theta[t]}}]
The error I receive is meaningless in my honest point of view since:
Length@ {{y2[t] -> theta[t] y3[t]}, {y3[t] ->
y2[t]/theta[t]}}
returns 2.
Length /@
that must give {2, 2}. It wants 2 transformations going both ways. Since you have to put something in for a second transformation in each, how about puttingy1[t] -> y1[t]
into both of them? $\endgroup$