Question: about changement of variables names with a integer (inside a string)

Hello,

I would like to automize some calculations which are variables changements.

ChgtVariables_VERS_INT:=
diff(theta[1](t),t$2)=ddq1,
diff(theta[1](t),t)=dq1,
theta[1](t)=q1,
diff(theta[2](t),t$2)=ddq2,
diff(theta[2](t),t)=dq2,
theta[2](t)=q2,
diff(theta[3](t),t$2)=theta3_dd,
diff(theta[3](t),t)=theta3_d,
theta[3](t)=q3;

 

how can i do to make variables qi, dqi, ddqi with i which can change?

I think that is just a question of string but i'm not very used to use this.

I thank you in advance for your help.

Please Wait...