%% 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 2015 The MathWorks, Inc.