Date  File  Comment by  Comment  Rating 

28 Nov 2014  Min/Max selection Search for k smallest or largest elements in the array  Shamanth MK  
20 Nov 2014  FFTbased convolution Discrete convolution using FFT method  AP  This is what I experimented with the code. >> tic,A = convnfft(rand(300,300,300), ones(5,5,5), 'same');toc
>> tic,A = convn(rand(300,300,300), ones(5,5,5), 'same');toc
>> 8.061082/2.085360


04 Nov 2014  Freeknot spline approximation Least squares approximation of 1D data using freeknots spline  fasfa  Thank you, any possible modification to make it work for k=1? if not, do you know any other method for constant piece wise approximation? 

02 Nov 2014  Min/Max filter Multidimensional nonlinear min/max filtering  seongjin  So far, this is the fastest that I know. Thank you. 

30 Oct 2014  Freeknot spline approximation Least squares approximation of 1D data using freeknots spline  Bruno Luong  To Fasta: Yes for k=1; the gradient wrt knots are dirac like, and the gradient method used by here cannot handle it correctly. Yes, it's a major work to extend to 2D. 

30 Oct 2014  Freeknot spline approximation Least squares approximation of 1D data using freeknots spline  fasfa  Hello,
Also I would like to know if it would be very difficult to modify it and use it for surfaces instead of lines (1D > 2D).


29 Oct 2014  2D polygon interior detection Detect a whereas a point is interior or exterior to a 2D polygon  Roger GALLOU  
04 Oct 2014  Ndimensional histogram Compute ndimensional histogram  Brian Little  arnold and J: I noticed the same issue with the flipping of dimensions. I fixed this by transposing the count ouput parameter (count') before using it in scatter or pcolor or any other plotting function. Hope this helps :) 

17 Sep 2014  Sparse sub access This package allows to retrieve and assign values of sparse matrix in one shot.  Christoforos Rekatsinas  Got it thx!! 

17 Sep 2014  Sparse sub access This package allows to retrieve and assign values of sparse matrix in one shot.  Christoforos Rekatsinas  Hi
shuangou ren how exactly do u use it one FE assemblage 

29 Aug 2014  FFTbased convolution Discrete convolution using FFT method  Ian  I am running 2014a on a machine with 192Gb of RAM and 20 cores. I am trying to convolute two vectors, one with 3,060,663 elements, the other with 693. The builtin conv took 0.06 seconds. convnfft filled the memory and then crashed the machine. 

29 Aug 2014  Consecutive vector spliter Partition an input vector into smaller series of subvectors of consecutive elements  Xinyi Shen  This is a great function that I am looking for.


29 Aug 2014  FFTbased convolution Discrete convolution using FFT method  Maura Monville  I downloaded your code and tried to install launching the installation function from Matlab command line. I use a Mac running Maverick (10.9.4)
>> convnfft_install
> xcrun sdk macosx10.7 clang c I/Applications/MATLAB_R2013b.app/extern/include I/Applications/MATLAB_R2013b.app/simulink/include DMATLAB_MEX_FILE fnocommon arch x86_64 isysroot mmacosxversionmin=10.7 fexceptions O2 DNDEBUG "inplaceprod.c" xcodebuild: error: SDK "macosx10.7" cannot be located.
mex: compile of ' "inplaceprod.c"' failed. Unable to complete successfully. Error in convnfft_install (line 17)


25 Jul 2014  MultipleColon multiple colonintervals  Jeffrey  The technical solution (14FLI96) linked in a previous comment is no longer available at that url. The solution was republished to MATLAB Central Answers here: http://www.mathworks.com/matlabcentral/answers/143255howdoesthecolonoperatorwork 

24 Jun 2014  Voronoi Sphere Compute voronoi's diagram of points on the 2sphere  Eric  This is great! Thank you 

24 Jun 2014  Voronoi Sphere Compute voronoi's diagram of points on the 2sphere  Bruno Luong  To Eric: the output (K) _is_ sorted as the input seeds. 

24 Jun 2014  Voronoi Sphere Compute voronoi's diagram of points on the 2sphere  Eric  This is great. Is it possible to resort the output so that it preserves the order of the input? I am trying to apply specific individual patch colors. 

17 Jun 2014  Freeknot spline approximation Least squares approximation of 1D data using freeknots spline  ChiFu  
10 Jun 2014  Consecutive vector spliter Partition an input vector into smaller series of subvectors of consecutive elements  Bruno Luong  Monotonic SplitVec(a, @(v) [0; diff(v(1:end1)).*diff(v(2:end))<0]) 

09 Jun 2014  Consecutive vector spliter Partition an input vector into smaller series of subvectors of consecutive elements  Michal Kvasnicka  OK ... I add the 'decrease' and 'increase' functions by:
But, how to add functions for 'positive' and 'negative' values vector spliting? 

09 Jun 2014  Consecutive vector spliter Partition an input vector into smaller series of subvectors of consecutive elements  Michal Kvasnicka  Will be possible to generalize this function to split vector on monotonical parts using ismonotinic function (http://www.mathworks.com/matlabcentral/fileexchange/11637ismonotonic)? 

05 Jun 2014  Vectorized FIND with 'FIRST' option Find the first nonzero element(s) along row/column  or any other dimension  Bruno Luong  @Cullen, please ask Mac developer forum. It is odd that an integer 32 bits is not 4 bytes. Something must be very wrong, 

04 Jun 2014  Vectorized FIND with 'FIRST' option Find the first nonzero element(s) along row/column  or any other dimension  Joseph Cullen  I am getting the following error when trying to run this on a Mac use the compiler in Xcode. From the other comment about Linux, it seems that I have to change the typedef. Any ideas about what it should be for Mac? Error using find1dmex
Error in findfirst (line 106)
Error in test_nonparam (line 80)


01 Jun 2014  Min/Max selection Search for k smallest or largest elements in the array  Bruno Luong  @JUNBO please replace line #19 of minmax_install.m with this: if ispc() && datenum(version('date')) < datenum('January 11, 2014') 

28 May 2014  Min/Max selection Search for k smallest or largest elements in the array  JUNBO  Hi, Bruno I am using Matlab 2014a 64x, after installing a SDK 7.1, it still doesn't work, and shows the following messages:
error minmax_install (line 20)
error testminmax (line 11)
Junbo 

24 May 2014  Min/Max filter Multidimensional nonlinear min/max filtering  Wathsala Ranasinghe  
22 May 2014  All Permutations of integers with sum criteria All Pernutations of integers with sum criteria  Bruno Luong  @ Jang: the number of combination grows fast, like a factorial (i.e., more than a exponential). So it is not surprising that your computer (or any computer in fact) won't handle well large value. 

16 May 2014  All Permutations of integers with sum criteria All Pernutations of integers with sum criteria  Han Seung Jang  Thanks for your great work!!


16 May 2014  All Permutations of integers with sum criteria All Pernutations of integers with sum criteria  Han Seung Jang  
07 May 2014  Voronoi Sphere Compute voronoi's diagram of points on the 2sphere  Alphan Sahin  
04 Mar 2014  FFTbased convolution Discrete convolution using FFT method  Matt Taylor  This function is indeed faster than CONV, but as soon as I attempted to use it on larger data sets, Matlab produced an 'out of memory' error, whereas CONV can cope just fine with the same datasets (albeit taking longer). FYI if I run the 'memory' command my output is as follows:
So the problem definitely isn't my hardware 

12 Feb 2014  bsxops Force MATLAB operators to behave BSXFUNlike  M I  should be default behaviour of matlab 

04 Feb 2014  2D polygon interior detection Detect a whereas a point is interior or exterior to a 2D polygon  Jeffrey Steward  
22 Jan 2014  FFTbased convolution Discrete convolution using FFT method  Massimo Ciacci  Excellent job! Nicely documented and elegant code and to the point! Works much faster than conv2 for full case, and also faster than conv2 with option 'valid', which misteriously makes conv2 35x faster with a 500x500 matrix with a 400x400 one (makes me suspect that conv2 + 'valid' does not just extract the mid part but saves computations). 

22 Jan 2014  bsxops Force MATLAB operators to behave BSXFUNlike  Jared  An extremely useful set of functions. 

29 Dec 2013  Multiple samesize linear solver Solve multiple systems of linear equations of the same size  John Yang  Thanks for this file, shedding light to me on this kind of problems! 

29 Dec 2013  Euclidian projection on ellipsoid and conic Projecting a point on ellipsoid or conic in ndimensional space  Cui  Excellent work. It solved my problem. Thanks very very much. 

05 Dec 2013  Freeknot spline approximation Least squares approximation of 1D data using freeknots spline  Markus  Hi, I´m always getting the following warning message: Warning: Options LargeScale = 'off' and Algorithm = 'trustregionreflective'
What am I doing wrong? 

02 Nov 2013  Merge sorted arrays Given two already sorted arrays, the function combines them in an unique sorted array  Bruno Luong  Hi Paul, you are right this is a BUG. Submission including correction is pending. 

01 Nov 2013  Vectorized FIND with 'FIRST' option Find the first nonzero element(s) along row/column  or any other dimension  Francesco Pozzi  I have tried this: M = 1000; N = 20000;
Works fine. 

01 Nov 2013  Merge sorted arrays Given two already sorted arrays, the function combines them in an unique sorted array  Paul  Hi Bruno, thanks for a useful tool. It comes in handy for efficiently summing sparse tensors together. On my system there appears to be a bug when one of the two arrays is empty (see example case below). Is this a compilation problem on my system or a bug in the algorithm? Thanks! >> [C idx]=mergesa([],[1 1 1; 3 1 1],'rows') C = 1 1 1
idx = 1


01 Nov 2013  Vectorized FIND with 'FIRST' option Find the first nonzero element(s) along row/column  or any other dimension  Francesco Pozzi  
25 Oct 2013  Min/Max selection Search for k smallest or largest elements in the array  Mara  Bruno, which comments? I tried compiling the mex files by hand, but with no success. I get the following error. No supported SDK or compiler was found on this computer.


25 Oct 2013  FFTbased convolution Discrete convolution using FFT method  Bruno Luong  Young, You must change the directory where convfft is installed (including the c code) to install it. 

25 Oct 2013  FFTbased convolution Discrete convolution using FFT method  Young Gyu  Hi Bruno, First of all, thanks for the nice job. Unfortunately, I'm having problem with running it. When I try to run convnfft_install, it keeps saying
Do you have any suggestion? Thanks,


25 Oct 2013  Min/Max selection Search for k smallest or largest elements in the array  Bruno Luong  Mara, see older comments for workaround. 

24 Oct 2013  Min/Max selection Search for k smallest or largest elements in the array  Mara  I am having trouble installing this package on R2013a. I run minmax_install and get the following output. Thank you for any suggestions. Mara  Error using getmexopts (line 36)
Error in minmax_install (line 20)


14 Oct 2013  Voronoi Sphere Compute voronoi's diagram of points on the 2sphere  Zejia  
14 Oct 2013  All Permutations of integers with sum criteria All Pernutations of integers with sum criteria  Andrew Jones  
26 Sep 2013  Vectorized FIND with 'FIRST' option Find the first nonzero element(s) along row/column  or any other dimension  Karel Lebeda  Your comment is incorrect, on the 7th line should be:

