syms cosx sinx asinx acosx cosy siny bcosy bsiny cosz sinz csinz ccosz
syms cosx sinx asinx acosx cosy siny bcosy bsiny cosz sinz csinz ccosz
A=[cosx, -sinx,0, acosx;sinx,cosx,0,asinx;0,0,1,0;0,0,0,1];
B=[cosy, -siny,0, bcosy;siny,cosy,0,bsiny;0,0,1,0;0,0,0,1];
%C=[cosz, -sinz,0, ccosz;sinz,cosz,0,csinz;0,0,1,0;0,0,0,1];
%Linear algebraic product of the matrices...
M1= A * B * C;
M2= A*B;
M3= B*C;
M4= A*C;
%Array arithmetic operations are carried out element by element
M1= A * B * C;
M2= A*B;
M3= B*C;
M4= A*C;