Rank: 37 based on 691 downloads (last 30 days) and 13 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
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 13 0
02 Mar 2012 Screenshot uipickfiles: uigetfile on steroids Many-featured, platform independent file and directory picker. Author: Douglas Schwarz example, uigetfile uigetfiles ..., gui tools, potw, multiple file selecti..., pick of the week 86 72
  • 4.95
5.0 | 42 ratings
20 Feb 2012 csprintf: Write formatted strings to cells. Write text into a cell array of strings. Author: Douglas Schwarz utility, strings, sprintf 3 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 90 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 33 10
  • 5.0
5.0 | 8 ratings
Comments and Ratings by Douglas View all
Updated File Comments Rating
25 Jun 2013 uipickfiles: uigetfile on steroids Many-featured, platform independent file and directory picker. Author: Douglas Schwarz

Philip, there is currently no way to invert the meaning of the filter to exclude items, but it could be done with a checkbox to indicate it. Let me see if I can fit it in somewhere.

For now, it seems like you could just filter on "new".

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

Comments and Ratings on Douglas' Files View all
Updated File Comment by Comments Rating
25 Jun 2013 uipickfiles: uigetfile on steroids Many-featured, platform independent file and directory picker. Author: Douglas Schwarz Schwarz, Douglas

Philip, there is currently no way to invert the meaning of the filter to exclude items, but it could be done with a checkbox to indicate it. Let me see if I can fit it in somewhere.

For now, it seems like you could just filter on "new".

24 Jun 2013 uipickfiles: uigetfile on steroids Many-featured, platform independent file and directory picker. Author: Douglas Schwarz ferrer, andres

07 Jun 2013 uipickfiles: uigetfile on steroids Many-featured, platform independent file and directory picker. Author: Douglas Schwarz Pavey, Philip

07 Jun 2013 uipickfiles: uigetfile on steroids Many-featured, platform independent file and directory picker. Author: Douglas Schwarz Pavey, Philip

Instead of filtering for a certain string contained within a folder title, is it possible to omit folders with this string from the list?

For example, I have a folder with 10 folders where 7 contain information I do not want and the string "old" in the title. I would like to show only the 3 folders containing "new" in the folder title.

Is there a way to construct the filter criteria to achieve this?

22 May 2013 verbatim: Get the text of a block comment. Verbatim returns the text contained in the next block comment. Author: Douglas Schwarz Annamalai, Muthu

Excellent piece of code, to enable multi-line string literals in MATLAB

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
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 13 0
02 Mar 2012 Screenshot uipickfiles: uigetfile on steroids Many-featured, platform independent file and directory picker. Author: Douglas Schwarz example, uigetfile uigetfiles ..., gui tools, potw, multiple file selecti..., pick of the week 86 72
  • 4.95
5.0 | 42 ratings
20 Feb 2012 csprintf: Write formatted strings to cells. Write text into a cell array of strings. Author: Douglas Schwarz utility, strings, sprintf 3 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 90 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 33 10
  • 5.0
5.0 | 8 ratings

Contact us