1 of 7

Assignment #7 / Subplots Posted 6/17, due 6/26 11:59 pmLate: 6/27 12:01 am – 6/28 11:59 pmGame over: after 6/28 11:59 pm: 0 point

  • FirstName LastName
  • _____________________________

  • Instruction:

  • To edit, you don't need to "request access", do: File/Download/Microsoft PowerPoint(.pptx), save to your local drive; then you can edit your local file.

  • File name: Save this file as: 103-assign-07-YourFirstName-LastName

  • Email report directly to ui.luu@gccaz.edu, (Note: submit this assignment using your "maricopa.edu" email to get direct response for any feedback) (Your personal email address may get filtered into my SPAM folder)

  • Scores:
  • (1 point) Correct file name (with YOUR name) for PowerPoint (other files will have 0 points: pdf,doc)
  • (1 point) Name on this page
  • (8 points) technical (contents of this PowerPoint)
  • (2 points) submit report on time

2 of 7

Assignment #4 Starter Templatesubplot 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)')

%==========================

3 of 7

Assignment #4 Starter Templatesubplot 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')

4 of 7

Assignment #4 Starter Template(Screen shot / Script Window)

5 of 7

Screen Shot / 4 subplots

(2 points)

6 of 7

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^4Title: Plot #4: y4 = x + 2*x^2 - 3*x^3 + 4*x^4x label: x (date: 10-1-2020 / YOUR first name Last name)y label: y

Change script to include these 4 subplots

7 of 7

(8 points) Your Screen Shot (Full screen for graphs only) / 4 subplots