Question 1
I chose the signal $ x[n]=e^{j\pi n} \, $ which Jeff Kubascik posted on his HW1.
Recall that this signal is periodic if $ T = {\omega_0\over2\pi}\, $ is rational.
Say I choose the sampling period $ T_s=.1\, $
The output will be:
But if I choose the sampling period to be $ T_s=.7\, $
Question 2
I'm including the code for this part because I found help using Tyler Houlihan's work. He apparently also received help from Wei Jian Chan's HW. I used Tyler's code as a base to recreate a periodic signal from:
$ e^{-t}sin(t)\, $