I want to create in Simulink, a homogenous matrix in order to simulate the rotation and translation of an object in space.
How can I create a 4x4 matrix which will take as input the angle given?
For example a translation across the X axes combined with a rotation in Z would be in MATLAB:
%Supposing the input is
in = [a, b]
%translational part:
transl = eye(4);
transl (1,4) = in(1);
%Rotational Part:
rotat = eye(4);
rotat(1:3,1:3) = rotx(in(2));
move = transl*rotat;
The main problem is that I would like the Simulink model to be the more code-free (without MATLAB interpreted functions etc), just blocks.
Thank you.