%% Convert Rotation Matrix to Quaternion

rotm = [0 0 1; 0 1 0; -1 0 0];
quat = rotm2quat(rotm)

% Copyright 2015 The MathWorks, Inc.