%% Change View of Specific Axes
% Use the subplot function to create two axes, ax1 and ax2. Use them to create separate but identical line plots.

% Left plot
ax1 = subplot(1,2,1);
t = 0:pi/20:10*pi;
xt1 = sin(t);
yt1 = cos(t);
plot3(ax1,xt1,yt1,t)
xlabel('X')
ylabel('Y')
zlabel('Z')

% Right plot
ax2 = subplot(1,2,2);
plot3(ax2,xt1,yt1,t)
xlabel('X')
ylabel('Y')
zlabel('Z')

%
% Change the view of the right plot to a side view along the x-axis.

view(ax2,[90 0]);

% Copyright 2018 The MathWorks, Inc.