Rank: 68 based on 531 downloads (last 30 days) and 11 files submitted
photo

Douglas Schwarz

E-mail
Company/University
University of Rochester
Lat/Long
43.1229133605957, -77.62702941894531

Personal Profile:

I work in the Dept. of Neurobiology & Anatomy at the University of Rochester School of Medicine and Dentistry. Our lab is studying the auditory processing of complex sounds. 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
05 Jan 2012 Screenshot uipickfiles: uigetfile on steroids Many-featured, platform independent file and directory picker. Author: Douglas Schwarz example, multiple file selecti..., uigetfile uigetfiles ..., gui tools, potw, pick of the week 150 56
  • 4.93939
4.9 | 35 ratings
22 Jan 2011 sort_nat: Natural Order Sort Sort strings in natural order. Author: Douglas Schwarz strings, sort, natural order, digits, utilities, string manipulation 64 18
  • 5.0
5.0 | 16 ratings
05 Nov 2010 uibutton: GUI pushbuttons with better labels Creates pushbutton uicontrol labeled with TeX or LaTeX strings. Author: Douglas Schwarz example, pushbutton tex latex ..., gui tools 41 9
  • 5.0
5.0 | 7 ratings
27 Jan 2010 Screenshot Fast and Robust Curve Intersections Computes intersection points of two curves. Author: Douglas Schwarz interpolation, approximation, intersect intersectio... 212 68
  • 4.83721
4.8 | 46 ratings
22 Mar 2009 verbatim: Get the text of a block comment. Verbatim returns the text contained in the next block comment. Author: Douglas Schwarz text formatting, quote, string 9 1
  • 5.0
5.0 | 2 ratings
Comments and Ratings by Douglas View all
Updated File Comments Rating
05 Jan 2012 uipickfiles: uigetfile on steroids Many-featured, platform independent file and directory picker. Author: Douglas Schwarz

Bryan, that's interesting. Back when I first wrote this function, that was not an error, but at some point TMW changed textscan and I didn't notice. Anyway, I just submitted a fix. Thanks for the report!

03 Jan 2012 uipickfiles: uigetfile on steroids Many-featured, platform independent file and directory picker. Author: Douglas Schwarz

Andrew, I'm glad to oblige. I just submitted a version that cancels with a press of the escape key. Thanks for the suggestion.

18 Dec 2011 Fast and Robust Curve Intersections Computes intersection points of two curves. Author: Douglas Schwarz

Paul,

Thank you for your comments. First of all, you should know that the definitions for I and J were specifically requested by users -- they were not included at all in early versions of the program. I have no opinion about them since I don't use them myself. Certainly, backwards compatibility is important so they are not going to change.

I would encourage you to write a simple wrapper function that runs intersections and then converts its outputs into whatever you require. I hesitate to do that for you since I'm not completely sure what it is you need, but feel free to contact me via email if you need help with it.

Doug

11 Aug 2011 Fast and Robust Curve Intersections Computes intersection points of two curves. Author: Douglas Schwarz

Jack,

It just occurred to me that you can use the 3rd and 4th output arguments to tell you in which line segments the intersections lie. See the help for more info.

Doug

09 Aug 2011 Fast and Robust Curve Intersections Computes intersection points of two curves. Author: Douglas Schwarz

Jack,

No, it's not random.

For the NON-ROBUST option:
Number the line segments of your polygon from 1 to N, as defined by the order of the x- and y-coordinates. For each P1P2 line segment, the intersections are found in order of the polygon segments. In other words, if P1P2 crosses polygon segments 12 and 25, the intersection with segment 12 will be first followed by the intersection with segment 25, because 12 < 25.

For the ROBUST option:
Because unique() is run on the intersections, they end up being sorted in increasing order of the x-coordinate (with any tie broken by sorting y).

Doug

Comments and Ratings on Douglas' Files View all
Updated File Comment by Comments Rating
16 Jan 2012 Fast and Robust Curve Intersections Computes intersection points of two curves. Author: Douglas Schwarz Shagirov, Murat
05 Jan 2012 uipickfiles: uigetfile on steroids Many-featured, platform independent file and directory picker. Author: Douglas Schwarz Schwarz, Douglas

Bryan, that's interesting. Back when I first wrote this function, that was not an error, but at some point TMW changed textscan and I didn't notice. Anyway, I just submitted a fix. Thanks for the report!

05 Jan 2012 uipickfiles: uigetfile on steroids Many-featured, platform independent file and directory picker. Author: Douglas Schwarz Bryan

Douglas, great function. I noticed a bug while using on a PC. When I back out all the way to My Computer and open a new drive. I get an error at line 1299 for calling textscan with the first input empty.

03 Jan 2012 sort_nat: Natural Order Sort Sort strings in natural order. Author: Douglas Schwarz Bradley, Damon

Excellent work. Saved me a much time and headache with some data analysis over here at NASA. Thank you!

03 Jan 2012 sort_nat: Natural Order Sort Sort strings in natural order. Author: Douglas Schwarz Bradley, Damon
Top Tags Applied by Douglas
example, gui tools, singleton, string, utilities
Files Tagged by Douglas View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
05 Jan 2012 Screenshot uipickfiles: uigetfile on steroids Many-featured, platform independent file and directory picker. Author: Douglas Schwarz example, multiple file selecti..., uigetfile uigetfiles ..., gui tools, potw, pick of the week 150 56
  • 4.93939
4.9 | 35 ratings
22 Jan 2011 sort_nat: Natural Order Sort Sort strings in natural order. Author: Douglas Schwarz strings, sort, natural order, digits, utilities, string manipulation 64 18
  • 5.0
5.0 | 16 ratings
05 Nov 2010 uibutton: GUI pushbuttons with better labels Creates pushbutton uicontrol labeled with TeX or LaTeX strings. Author: Douglas Schwarz example, pushbutton tex latex ..., gui tools 41 9
  • 5.0
5.0 | 7 ratings
27 Jan 2010 Screenshot Fast and Robust Curve Intersections Computes intersection points of two curves. Author: Douglas Schwarz interpolation, approximation, intersect intersectio... 212 68
  • 4.83721
4.8 | 46 ratings
22 Mar 2009 verbatim: Get the text of a block comment. Verbatim returns the text contained in the next block comment. Author: Douglas Schwarz text formatting, quote, string 9 1
  • 5.0
5.0 | 2 ratings

Contact us at files@mathworks.com