%% Convert Quaternion to Rotation Matrix

quat = [0.7071 0.7071 0 0];
rotm = quat2rotm(quat)

% Copyright 2019 The MathWorks, Inc.