Adi 5
Adi 5
subplot(2,2,2); % divides the current figure into 2*2 grid and plot cos(x) in
grid position 2
plot(x,y2); % plots the graph of functions x and y2
grid on; % enables the grid mode
xlabel('X-axis') % labels the X-axis of the graph
ylabel('Y-axis') % labels the Y-axis of the graph
title('subplot 2= cos(x)') % establishes the title of the plot
subplot(2,2,3); % divides the current figure into 2*2 grid and plot tan(x) in
grid position 3
plot(x,y3); % plots the graph of functions x and y3
grid on; % enables the grid mode
xlabel('X-axis') % labels the X-axis of the graph
ylabel('Y-axis') % labels the Y-axis of the graph
title('subplot 3= tan(x)') % establishes the title of the plot
subplot(2,2,4); % divides the current figure into 2*2 grid and plot cot(x) in
grid position 4
plot(x,y4); % plots the graph of functions x and y4
grid on; % enables the grid mode
xlabel('X-axis') % labels the X-axis of the graph
ylabel('Y-axis') % labels the Y-axis of the graph
title('subplot 4= cot(x)') % establishes the title of the plot