Rank: 1952 based on 33 downloads (last 30 days) and 3 files submitted
photo

Matt

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Matt View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
07 Jun 2013 Closest Finds the value in an array X closest to the scalar b. Author: Matt mathematics 21 2
  • 2.0
2.0 | 1 rating
03 Jan 2013 Screenshot Fourier derivative A numerical differentiator for periodic functions using Fourier transformations Author: Matt fourier analysis, spectral methods, numerical differentia... 10 0
26 Dec 2012 Multifactorial function Computes the nth-multifactorial of an integer Author: Matt mathematics, factorial 2 0
Comments and Ratings on Matt's Files View all
Updated File Comment by Comments Rating
12 Jun 2013 Closest Finds the value in an array X closest to the scalar b. Author: Matt Crozier, Richard

John D'Errics's excellent ipdm http://www.mathworks.co.uk/matlabcentral/fileexchange/18937-ipdm-inter-point-distance-matrix is more advanced, and supports lots of distance metrics, use the 'nearestto' option to get similar results to your funtion.

07 Jun 2013 Closest Finds the value in an array X closest to the scalar b. Author: Matt Jos (10584)

[~,idx] = min(abs(X(:)-b))
c = X(idx)

would do.

Top Tags Applied by Matt
mathematics, factorial, fourier analysis, numerical differentiation, spectral methods
Files Tagged by Matt View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
07 Jun 2013 Closest Finds the value in an array X closest to the scalar b. Author: Matt mathematics 21 2
  • 2.0
2.0 | 1 rating
03 Jan 2013 Screenshot Fourier derivative A numerical differentiator for periodic functions using Fourier transformations Author: Matt fourier analysis, spectral methods, numerical differentia... 10 0
26 Dec 2012 Multifactorial function Computes the nth-multifactorial of an integer Author: Matt mathematics, factorial 2 0

Contact us