%% Convert Quaternion to Homogeneous Transformation

quat = [0.7071 0.7071 0 0];
tform = quat2tform(quat)

% Copyright 2019 The MathWorks, Inc.