Rank: 10818 based on 0 downloads (last 30 days) and 0 files submitted
photo

Ahmed Fasih

E-mail
Company/University
OSU

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Ahmed View all
Updated File Comments Rating
25 Apr 2009 fshift Shifts the elements of an array by a (possibly non-integer) given number of elements. Author: Francois Bouffard

I had to remove the following from the function: "if isreal(x); y = real(y); end;". With this gone, the output of the fft() of a complex exponential is exactly equal to an fshift()ed sinc().

18 Nov 2008 Obs. from Arbitrary PDF Generate a sample from an arbitrary PDF. Author: Dave Dykes

Valuable code to have.

Code can be made faster by vectorizing the while loop, and also to return multiple draws from the distribution. Just make sure to validate your modifications with a non-symmetric distribution like a beta.

This technique of random number generation is discussed here: http://en.wikipedia.org/wiki/Inverse_transform_sampling

Top Tags Applied by Ahmed
delay, dft, fft, fourier, phase
Files Tagged by Ahmed
Updated   File Tags Downloads
(last 30 days)
Comments Rating
07 Nov 2006 fshift Shifts the elements of an array by a (possibly non-integer) given number of elements. Author: Francois Bouffard fractional, utilities, shift, noninteger, matrices, circular 16 4
  • 5.0
5.0 | 4 ratings

Contact us at files@mathworks.com