CSCI 1371 Spring 2018 Lab 7 a) The following table shows the average temperat st
ID: 3705867 • Letter: C
Question
CSCI 1371 Spring 2018 Lab 7 a) The following table shows the average temperat stem plot, a bar plot, and a stairs plot. Year Temperature C) 21 b) The popular amusement ride known as the corkscrew has a helical shape. The parametric equations ure for each year in a certain city. Plot the data as a 2001 18 2002 19 2003 20 2004 17 2000 x- a cos t y - a sint t for a circular helix are: Where a is the radius of the helical path and b is a constant that determines the tightness of the path Code the three dimensional plot of the helix for the following three cases. Use 0 st s 10? and a = 1. 1) b = 0.1 2) b = 0.2 3) b =-0.1 Print the graphs, label your axes and title of the graphExplanation / Answer
%a
year=2000:2004;
T=[21,18,19,20,17];
stairs(year,T)
figure
bar(year,T)
figure
stem(year,T)
%%
%b
t=0:.01:10;
a=1;
b=[.1 .2 -.1];
x=a*cos(t);
y=a*sin(t);
for i=1:3
z=b(i)*t;
figure
plot3(x,y,z)
xlabel('x')
ylabel('y')
zlabel('z')
title(['Circlar helix with b= ' num2str(b(i))])
end