Homework 2 Part A-1
I chose the signal:
$ y = cos(n)\, $
When I took a sample at 1 hz, the signal was ugly and random.
Therefore it is not periodic.
File:Non-periodic.jpg ECE301Fall2008mboutin
Changing the function to:$ y = cos(n*pi/2)\, $
made the signal look periodic.
Part A-2
I chose the signal y=log(x)
This code is not periodic, but taking a piece of it and
Repeating it will make it periodic
Here is the code I used: dt = .00001; periodlength = 5; periods = 10; t = [dt:dt:periodlength]; y = log(t); x = []; for i=1:periods x = [x,y]; end t = [dt:dt:periodlength*periods]; plot(t,x)