for i=1:1:4
T=[(cos(x(i)))^2 (sin(x(i)))^2 2*(cos(x(i)))*(sin(x(i)));(sin(x(i)))^2 (cos(x(i)))^2 -2*(cos(x(i)))*(sin(x(i))) ;-(cos(x(i)))*(sin(x(i))) (cos(x(i)))*(sin(x(i))) (cos(x(i)))^2-(sin(x(i)))^2 ;];
XXXXX=inv(T)*Qq*R*T*inv(R);
end
I want to name XXXXX according to i; I mean that when i=1 is running, The XXXXX will be variable Q1,and i=2 will be Q2, and on and on.