%% Rotate Spiral Trace About Axis
% Create and display a spiral trace.

trace = traceSpiral;
show(trace)

% Specify two points that define the axes of rotation.

pt1 = [0 0 0];
pt2 = [1 1 0];

% Rotate the spiral trace by 45 degrees about the axis.

traceRot = rotate(trace,45,pt1,pt2);

% Display the rotated shape. Set the camera line of sight to display in 3-D space.

show(traceRot)
view(60,10)

% Copyright 2021 The MathWorks, Inc.