%% Convert Homogeneous Transformation to Rotation Matrix

tform = [1 0 0 0; 0 -1 0 0; 0 0 -1 0; 0 0 0 1];
rotm = tform2rotm(tform)

% Copyright 2019 The MathWorks, Inc.