Assignment #7 / Subplots� � Posted 6/17, due 6/26 11:59 pm�Late: 6/27 12:01 am – 6/28 11:59 pm�Game over: after 6/28 11:59 pm: 0 point
Assignment #4 Starter Template�subplot 1 & 2
% assign_07_sub_plots.m : Subplot Exercise
clear
clc
% x range is for all plots
x=0:1:360; % unit in degree
% subplot 1:
y1=sind(x)+ cosd(x);
subplot(2,2,1) % 2 rows, 2 columns, position 1
plot(x,y1)
grid on;
title('Plot#1: y1=sind(x)+cosd(x)')
xlabel('x(degree)')
ylabel('y')
%==========================
% subplot 2:
t=0:0.1:10; % time, unit in second
y2=0.5*9.81*t.^2; % distance, unit in meter(m)
subplot(2,2,2) % 2 rows, 2 columns, position 2
plot(t,y2)
grid on;
title('Plot#2: y2=0.5*9.81*t.^2')
xlabel('t(second)')
ylabel('y2 (m)')
%==========================
Assignment #4 Starter Template�subplot 3 & 4
% subplot 3:
t=0:1:10; % unit in second
y3=2*t+1; % distance, unit in meter(m)
subplot(2,2,3) % 2 rows, 2 columns, position 3
plot(t,y3)
grid on;
title('Plot#3: y3=2*t+1')
xlabel('t(second)')
ylabel('y(m)')
%==========================
% subplot 4:
x=0:1:5;
y4=x+ 4*x.^4;
subplot(2,2,4) % 2 rows, 2 columns, position 4
plot(x,y4)
grid on;
title('Plot#4: factor unknown')
xlabel('x date:10-01 / FirstName LastName')
ylabel('y (unknown)')
%==========================
display('plot is done, look for it in Figure window')
display('Capture screen shot for 4 plots, make sure your name is on the xlabel/subplot4')
display('Add the capture screen shot to assignment#7 powerpoint, email directly to coach')
Assignment #4 Starter Template�(Screen shot / Script Window)
Screen Shot / 4 subplots
(2 points)
subplot #1:�x range: x= 0:1:360 (in degree)�y1 = sin(x) + 3*cos(x) (x in degree)�Title: Plot #1: y = sin(x) + 3*cos(x)�x label: x (degree)�y label: y��subplot #2:�x range: x= 0:1:360 (in degree)�y2 = tan(x) + x (x in degree)�Title: Plot #2: y2 = tan(x) + x �x label: x (degree)�y label: y��subplot #3:�x range: x= 0:1:360 (in degree)�y3 = x^2 + 1 (x in degree)�Title: Plot #3: y3 = x^2 + 1 �x label: x (degree)�y label: y��subplot #4:�x range: x= 0:1:5 �y4 = x + 2*x^2 - 3*x^3 + 4*x^4�Title: Plot #4: y4 = x + 2*x^2 - 3*x^3 + 4*x^4�x label: x (date: 10-1-2020 / YOUR first name Last name)�y label: y�
Change script to include these 4 subplots
(8 points) Your Screen Shot (Full screen for graphs only) / 4 subplots