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

trace = traceSpiral;
show(trace)

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

traceRotX = rotateX(trace,45);

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

show(traceRotX)
view(60,10)

% Copyright 2021 The MathWorks, Inc.