Professional Documents
Culture Documents
Programming Languages - 08052018
Programming Languages - 08052018
2018
1. Plot the following two data sets on the same plot. For each set, x = 0, 1, 2, 3, 4, 5. Use a
different data marker and a different color for each set. Use a legend, and label the plot
axes appropriately. The first set is y1 =11, 13, 8, 7, 5, 9. The second set is y2 = 2, 4, 5, 3,
2, 4
5. Plot the animation of a 3D growing spiral. The equations of the spiral are:
𝑥 = 𝑡 ∗ sin(𝑡)
𝑦 = 𝑡 ∗ cos(𝑡), for 𝑡 ∈ [0,16𝜋].
𝑧=𝑡
The animation should start at 𝑡 = 𝜋 and stop at 𝑡 = 16𝜋