Rank: 88 based on 699 downloads (last 30 days) and 13 files submitted
photo

Douglas Schwarz

E-mail
Company/University
University of Rochester
Lat/Long
43.122913, -77.62703

Personal Profile:

I work in the Dept. of Biomedical Engineering at the University of Rochester where our lab is studying the auditory processing of complex sounds. I also teach an introductory MATLAB class to BME students. I have been using MATLAB since 1987.

Professional Interests:
Signal processing, statistics, consulting

 

Watch this Author's files

 

Files Posted by Douglas View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
30 May 2013 Screenshot figmenu: An automatic figure-selection menu Easily switch between figures using a menu that is created automatically. Author: Douglas Schwarz figure, menu 20 0
02 Mar 2012 Screenshot uipickfiles: uigetfile on steroids Many-featured, platform independent file and directory picker. Author: Douglas Schwarz gui tools, example, uigetfile uigetfiles ..., multiple file selecti..., potw, pick of the week 88 80
  • 4.95918
5.0 | 51 ratings
20 Feb 2012 csprintf: Write formatted strings to cells. Write text into a cell array of strings. Author: Douglas Schwarz utility, strings, sprintf 17 0
22 Jan 2011 sort_nat: Natural Order Sort Sort strings in natural order. Author: Douglas Schwarz strings, sort, natural order, digits, utilities, string manipulation 127 34
  • 4.9697
5.0 | 35 ratings
05 Nov 2010 uibutton: GUI pushbuttons with better labels Creates pushbutton uicontrol labeled with TeX or LaTeX strings. Author: Douglas Schwarz gui tools, example, pushbutton tex latex ... 59 10
  • 5.0
5.0 | 10 ratings
Comments and Ratings by Douglas View all
Updated File Comments Rating
11 Jul 2014 Fast and Robust Curve Intersections Computes intersection points of two curves. Author: 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.

26 Jun 2014 sort_nat: Natural Order Sort Sort strings in natural order. Author: 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".

12 May 2014 Fast and Robust Curve Intersections Computes intersection points of two curves. Author: 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.

07 Apr 2014 sort_nat: Natural Order Sort Sort strings in natural order. Author: Douglas Schwarz

Sergey,
Well, it's not a bug, but you might disagree with my logic. Remember, we are sorting strings, not numbers. '01' comes after '1' because they have the same numerical value, but '01' is a longer string. Likewise, '000' comes after '00', etc.
It may be possible to include '+-.,' by changing the regular expressions (currently just looking for runs of digits with '\d+'.

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

Matthew,
Adding error IDs is a great idea -- I'll do that. I don't know about providing for objects though. My intent is make it accept property/value pairs just like Handle Graphics functions so that includes structures. If HG functions accept objects then I'll add that, but I wouldn't think there'd be much call for it. Thanks for your comments!

Comments and Ratings on Douglas' Files View all
Updated File Comment by Comments Rating
11 Jul 2014 Fast and Robust Curve Intersections Computes intersection points of two curves. Author: Douglas Schwarz Schwarz, Douglas

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. Author: Douglas Schwarz Jan

It also erroneously finds contact points (no real intersections).
Example: [x0, y0] = intersections([-1,0,-1], [-1,0,1], [1, 0, 1], [-1,0,1], 1);
returns point (0, 0) as intersection point although it isn't.

04 Jul 2014 Fast and Robust Curve Intersections Computes intersection points of two curves. Author: Douglas Schwarz ENSTA

27 Jun 2014 uipickfiles: uigetfile on steroids Many-featured, platform independent file and directory picker. Author: Douglas Schwarz Anderson, Douglas

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. Author: Douglas Schwarz Maryam

Thank you very much. It is in the same folder. This is why I am very surprised.

Contact us