I need to take 27 uniformly distributed samples from a cosine fuction over the interval (-pi/2, pi/2).
Any ideas?
Any ideas?
I would start by defining a vectorI need to take 27 uniformly distributed samples from a cosine fuction over the interval (-pi/2, pi/2).
Any ideas?
Very cool ! Thanks.Alternatively:
cos(linspace(-pi/2, pi/2, 27));