Rank: 87 based on 600 downloads (last 30 days) and 12 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
02 Mar 2012 Screenshot uipickfiles: uigetfile on steroids Many-featured, platform independent file and directory picker. Author: Douglas Schwarz example, potw, multiple file selecti..., uigetfile uigetfiles ..., gui tools, pick of the week 108 70
  • 4.94737
4.9 | 40 ratings
20 Feb 2012 csprintf: Write formatted strings to cells. Write text into a cell array of strings. Author: Douglas Schwarz utility, strings, sprintf 2 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 88 23
  • 5.0
5.0 | 24 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 46 10
  • 5.0
5.0 | 8 ratings
27 Jan 2010 Screenshot Fast and Robust Curve Intersections Computes intersection points of two curves. Author: Douglas Schwarz approximation, interpolation, intersect intersectio... 281 72
  • 4.85106
4.9 | 50 ratings
Comments and Ratings by Douglas View all
Updated File Comments Rating
20 Jan 2013 uipickfiles: uigetfile on steroids Many-featured, platform independent file and directory picker. Author: Douglas Schwarz

Jesse, thanks for the very good suggestion.

20 Jan 2013 Fast and Robust Curve Intersections Computes intersection points of two curves. Author: Douglas Schwarz

John,

Welcome to the fun of floating-point arithmetic. First, the duplicate points *are* removed, but this is not obvious unless you display all the digits of the result. For your third example, the four "duplicates" are actually all different, but only in the final bit (you can see it with "format hex"). I don't think there's anything I can do to make this work correctly in all cases.

Second, why should something fail if an intersection occurs at a segment boundary? Some people would like to consider this a proper intersection and others not (I know this from several discussions on the topic). As a user, you will have to evaluate the results you get for your particular application.

In many real world applications, where the two curves are formed from real data, this issue never comes up at all. It's (mostly) only from textbook type problems that you'll see this behavior.

Doug

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

iman, this question belongs on the newsgroup, but I will answer anyway.

Your error is that n is not an image, but just a string containing the image file name. You must load the image first:

[filename,folder] = uigetfile(...);
im = imread(fullfile(folder,filename));
axes(handles.axes1)
imshow(im)
imwrite(im,'myimage.jpg')

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

Andrew,

No, they aren't supposed to be displayed. I realize that it's not ideal, but there are two problems with displaying them. (1) There's not enough room. Remember, we have to display both the list of files on the left and the chosen files on the right. To display additional information would simply make the figure too wide. (2) It would be difficult (maybe impossible) to get multiple columns to line up without using a monospaced font. A monospaced font would take up even more room and just exacerbate problem 1.

Those are my reasons, but I will think about your request and if I can come up with a way to do it without sacrificing appearance or functionality I'm not opposed.

Doug

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

Chris, I uploaded a new version that deals with the "My Documents" issue.

Comments and Ratings on Douglas' Files View all
Updated File Comment by Comments Rating
28 Apr 2013 sort_nat: Natural Order Sort Sort strings in natural order. Author: Douglas Schwarz Pete

23 Apr 2013 Fast and Robust Curve Intersections Computes intersection points of two curves. Author: Douglas Schwarz Naime

26 Mar 2013 sort_nat: Natural Order Sort Sort strings in natural order. Author: Douglas Schwarz Ekaterina

Sorry, I am a beginner in MATLAB and I am not sure what the input arguments in these function mean. There are many input argument.... I have a struct array (conists of files with names ex.123_1, 123_2, etc) A <3000*1> struct and I want to sort it according to name of files which are there. How shoud I use this function... Please help me.. best wiches Katya

21 Mar 2013 uipickfiles: uigetfile on steroids Many-featured, platform independent file and directory picker. Author: Douglas Schwarz Olivier

So useful. Thank you

07 Mar 2013 sort_nat: Natural Order Sort Sort strings in natural order. Author: Douglas Schwarz savo, salvatore

thanks a lot!!! great

Top Tags Applied by Douglas
example, gui tools, singleton, string, strings
Files Tagged by Douglas View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
02 Mar 2012 Screenshot uipickfiles: uigetfile on steroids Many-featured, platform independent file and directory picker. Author: Douglas Schwarz example, potw, multiple file selecti..., uigetfile uigetfiles ..., gui tools, pick of the week 108 70
  • 4.94737
4.9 | 40 ratings
20 Feb 2012 csprintf: Write formatted strings to cells. Write text into a cell array of strings. Author: Douglas Schwarz utility, strings, sprintf 2 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 88 23
  • 5.0
5.0 | 24 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 46 10
  • 5.0
5.0 | 8 ratings
27 Jan 2010 Screenshot Fast and Robust Curve Intersections Computes intersection points of two curves. Author: Douglas Schwarz approximation, interpolation, intersect intersectio... 281 72
  • 4.85106
4.9 | 50 ratings

Contact us