Date  File  Comment by  Comment  Rating 

01 Nov 2014  Fast and Robust Curve Intersections Computes intersection points of two curves.  Douglas Schwarz  Pedro, thanks for the suggestion. I tried bsxfun when I first wrote this and it was not faster at that time. Perhaps things have changed so i will revisit it. 

31 Oct 2014  Fast and Robust Curve Intersections Computes intersection points of two curves.  Pedro  Thanks for this functions. It was very helpfull.
Thanks again, Pedro 

27 Oct 2014  Fast and Robust Curve Intersections Computes intersection points of two curves.  Kevin  
30 Sep 2014  uipickfiles: uigetfile on steroids Manyfeatured, platform independent file and directory picker.  Muhammad Hussain  Hi Mr. Anderson, This is an excellent tool.
I want the above mentioned functions in addition to this tool.Please give me some hints to add these features. Thanks 

03 Aug 2014  sort_nat: Natural Order Sort Sort strings in natural order.  Stephen Cobeldick  Sorting filenames using a sort function such as "sort_nat" can return nonuserintuitive ordering, as some longer filenames will sort before shorter filenames. This is due to char(0:45), including [ !"#$%&'()*+,], sorting before the period '.' (char(46) used as the extension separator. For example: fnm = {...
% "sort" gives the wrong order for numeric substrings:
% "sort_nat" gives numeric substrings in the correct order, but with '' before '.':
One solution is to sort the filename and file extensions separately, for which I wrote a function "natsortfiles":
It allows control over case sensitivity, sort direction, and numeric substring matching. You can find this function on FEX here:


11 Jul 2014  Fast and Robust Curve Intersections Computes intersection points of two curves.  Douglas Schwarz  Ilya and Jan, because of floating point arithmetic, it's impossible to find intersections perfectly in all cases. Jan, your example has two curves that touch at a single point; some people might define this as an intersection. Your assertion that (0,0) isn't an intersection is debatable. 

11 Jul 2014  Fast and Robust Curve Intersections Computes intersection points of two curves.  Jan  It also erroneously finds contact points (no real intersections).


04 Jul 2014  Fast and Robust Curve Intersections Computes intersection points of two curves.  ENSTA  
27 Jun 2014  uipickfiles: uigetfile on steroids Manyfeatured, platform independent file and directory picker.  Douglas Anderson  This is a fantastic utility. I'm a bit confused about 'FilterSpec', 'REFilter', and 'Type'. If you want to have results of two filters displayed at the same time, such as all '*.xls' and '*.xlsx' files, is the only way to do that through the REFilter? Thanks for a great function. 

26 Jun 2014  sort_nat: Natural Order Sort Sort strings in natural order.  Maryam  Thank you very much. It is in the same folder. This is why I am very surprised. 

26 Jun 2014  sort_nat: Natural Order Sort Sort strings in natural order.  Douglas Schwarz  Maryam, make sure that sort_nat.m is in a folder that is on your MATLAB path. You can read more about the path with "doc path". 

26 Jun 2014  sort_nat: Natural Order Sort Sort strings in natural order.  Maryam  Hello. I wan to use this program to sort a vector a strings which have numerical values in their name. I am giving this error: Undefined function 'sort_nat' for input arguments of type 'cell' what should I do? 

17 Jun 2014  Fast and Robust Curve Intersections Computes intersection points of two curves.  Ilya  An excellent function! However, if both intersecting curves already include the intersection point, weird results are possible (see the provided example). This problem was already touched by John Mahoney (the results were different). My test case: several lines pass through one point and every line must eventually include this point. However, it's not known in advance that we have this situation, it simply may appear. x1=[0.49313932739246, 0.02127781500161, 0.450583697389237];
The case is published because it may be useful to know about. Otherwise I agree that the function works fine in 99,99999999% of cases. 

17 Jun 2014  Fast and Robust Curve Intersections Computes intersection points of two curves.  p kung  exactly what i'm looking for.


12 Jun 2014  uibutton: GUI pushbuttons with better labels Creates pushbutton uicontrol labeled with TeX or LaTeX strings.  Nam  
22 May 2014  sort_nat: Natural Order Sort Sort strings in natural order.  Morad Kassem  
14 May 2014  Fast and Robust Curve Intersections Computes intersection points of two curves.  deepak gogade  thanks to douglas sir. it is running . 

14 May 2014  Fast and Robust Curve Intersections Computes intersection points of two curves.  deepak gogade  where to find intersection.m file 

13 May 2014  Fast and Robust Curve Intersections Computes intersection points of two curves.  deepak gogade  hello sir i asked a question on mathwork ask the question please help me out this question.


12 May 2014  Fast and Robust Curve Intersections Computes intersection points of two curves.  Douglas Schwarz  Deepak, you must install intersections.m into a folder that is on your MATLAB path. The error message is simply informing you that MATLAB cannot find the function. 

12 May 2014  Fast and Robust Curve Intersections Computes intersection points of two curves.  deepak gogade  when i run the code
that problem is occured: "Undefined function 'intersections' for input arguments of type 'double'." 

05 May 2014  Fast and Robust Curve Intersections Computes intersection points of two curves.  Elizabeth Jones  
07 Apr 2014  sort_nat: Natural Order Sort Sort strings in natural order.  Douglas Schwarz  Sergey,


06 Apr 2014  Parse property/value pairs and structures Parses property/value pairs just like Handle Graphics functions.  Douglas Schwarz  Matthew,


06 Apr 2014  uipickfiles: uigetfile on steroids Manyfeatured, platform independent file and directory picker.  Douglas Schwarz  Dan K,


06 Apr 2014  sort_nat: Natural Order Sort Sort strings in natural order.  Sergey  Very fast! I can't beat it! This might be a bug though, not sure?
I came up with a version that can treat '+.,' as part of the number, but its 10x slower. Not sure if sort_nat can be extended to do same. 

01 Apr 2014  Parse property/value pairs and structures Parses property/value pairs just like Handle Graphics functions.  Matthew Barrett  This is an excellent submission, thank you! I've made one minor extension in my version which allows this function to work with objects as well as structures. I haven't encountered any bugs because of it yet, but I can't guarantee that it's error free. You could change the line: elseif isstruct(arg) to elseif isstruct(arg)  isobject(arg) For completeness/tidiness, you could also change the errors to include IDs (to allow user control of error management), so something like... error('ParsePropVal:BadArgFormat', 'Properties must be specified by property/value pairs, structures, or objects.') and error('ParsePropVal:BadArgValue', 'Property ''%s'' does not exist or is ambiguous.', arg) 

26 Mar 2014  uipickfiles: uigetfile on steroids Manyfeatured, platform independent file and directory picker.  Molly Rossow  
27 Feb 2014  Fast and Robust Curve Intersections Computes intersection points of two curves.  Eric Sampson  
27 Feb 2014  uipickfiles: uigetfile on steroids Manyfeatured, platform independent file and directory picker.  Dan K  This is a fabulous tool. One "feature request" I would love to see is a favorites list. The recent list is great, but since it tracks every folder visited, it can fill up fast with the intermediate folders needed to navigate to your new destination. Given that I frequently need to shift between widely separated directories on network shares and local drives, having a favorites that I could just use to hop to at least the approximate location would be great! Thanks. 

26 Feb 2014  uipickfiles: uigetfile on steroids Manyfeatured, platform independent file and directory picker.  Adam  Great improvements over the Matlab function! 

19 Feb 2014  sort_nat: Natural Order Sort Sort strings in natural order.  alex  thank you very much!


19 Feb 2014  sort_nat: Natural Order Sort Sort strings in natural order.  Douglas Schwarz  Alex, your input has to be a cell array: >> C = {'1.bmp','10.bmp','11.bmp','2.bmp'};


19 Feb 2014  sort_nat: Natural Order Sort Sort strings in natural order.  alex  
19 Feb 2014  sort_nat: Natural Order Sort Sort strings in natural order.  alex  i find this very useful,but i cant use it. C = 1.bmp10.bmp11.bmp2.bmp >> [S,INDEX] = sort_nat(C) Cell contents reference from a noncell array object. Error in sort_nat (line 62) num_val(i,z(i,:)) = sscanf(sprintf('%s ',digruns{i}{:}),'%f'); any help? 

02 Feb 2014  Fast and Robust Curve Intersections Computes intersection points of two curves.  Faraz Oloumi  Thank you! 

23 Nov 2013  uipickfiles: uigetfile on steroids Manyfeatured, platform independent file and directory picker.  Daniel  Never mind! I'm an idiot, figured out what I was doing wrong 

11 Nov 2013  sort_nat: Natural Order Sort Sort strings in natural order.  Calum  Very useful  worked was described! Thanks. 

29 Oct 2013  sort_nat: Natural Order Sort Sort strings in natural order.  JiaDa  It work well and help a lot. So awesome!!!


17 Oct 2013  uipickfiles: uigetfile on steroids Manyfeatured, platform independent file and directory picker.  Ryan Edwards  
08 Oct 2013  Fast and Robust Curve Intersections Computes intersection points of two curves.  Ted Shultz  Just what i was looking for! thanks 

25 Sep 2013  sort_nat: Natural Order Sort Sort strings in natural order.  Dirk  Thank you so much, saved me a lot of time! Dirk 

06 Sep 2013  sort_nat: Natural Order Sort Sort strings in natural order.  Paul  
28 Aug 2013  uipickfiles: uigetfile on steroids Manyfeatured, platform independent file and directory picker.  Douglas Schwarz  John, Sorry for the delay  somehow I missed your question. Yes, you can show only folders by entering '^' as the regular expression filter. That will cause the program to display only files that begin with nothing. Since no file has no name and folders are exempt from RE filtering (by default), only folders will be displayed. uipickfiles('REFilter','^') I realize that's a bit of a hack so I will consider adding such a feature. Doug 

28 Aug 2013  Fast and Robust Curve Intersections Computes intersection points of two curves.  François Beauducel  Thanks. 

27 Aug 2013  uipickfiles: uigetfile on steroids Manyfeatured, platform independent file and directory picker.  Elliott Liggett  This is a great replacement for the honestly awful builtin file box. To hide hidden files ("dot files"):


01 Aug 2013  sort_nat: Natural Order Sort Sort strings in natural order.  Erwin  
31 Jul 2013  uipickfiles: uigetfile on steroids Manyfeatured, platform independent file and directory picker.  John  
31 Jul 2013  uipickfiles: uigetfile on steroids Manyfeatured, platform independent file and directory picker.  John  Hi Doug! This is a great tool! Is there some way that I could have the function only show folders (i.e. similar to uigetdir)? 

18 Jul 2013  sort_nat: Natural Order Sort Sort strings in natural order.  Yi Sui  