Rank: 362 based on 220 downloads (last 30 days) and 10 files submitted
photo

Kelly Kearney

E-mail
Company/University
Princeton University

Personal Profile:

Professional Interests:

 

Watch this Author's files

 

Files Posted by Kelly View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
26 May 2010 Screenshot plotboxpos Returns the position of a plotted axis region Author: Kelly Kearney annotation, plotted, customization, plot, area, position 20 2
  • 4.0
4.0 | 3 ratings
05 May 2010 Screenshot boundedline: line plots with shaded error/confidence intervals Plot one or more lines with a shaded boundary (can represent error, confidence intervals, etc). Author: Kelly Kearney bounds line confidenc... 66 2
  • 5.0
5.0 | 1 rating
20 Jan 2010 Screenshot bufferm2 Creates a buffer zone around or inside a polygon or polygons Author: Kelly Kearney polygon, bufferm, buffer zone, buffer 17 1
  • 5.0
5.0 | 1 rating
30 Jun 2009 Screenshot tick2text: create easy-to-customize tick labels Changes tick marks to text objects that can be easily customized, maintains customization in zooming Author: Kelly Kearney graphics, customization, text, rotate, label, tick 41 4
  • 4.0
4.0 | 4 ratings
17 Oct 2008 subdir: a recursive file search Performs a recursive file search using same input and output format as dir function Author: Kelly Kearney subdir, directories, file, dir, recursive, search 22 2
  • 4.0
4.0 | 1 rating
Comments and Ratings by Kelly View all
Updated File Comments Rating
21 Aug 2009 tlabel.m v2.6.1 (Sep 2009) Same as DATETICK but with ZOOM, PAN, LINKAXES and more! Author: Carlos Adrian Vargas Aguilera

I've been using an older version of this function for a few months now, and it's a great little utility, much more flexible than datetick. However, I noticed two small bugs with this release:

1) If you plot data that spans several years, then zoom in to a few-months range, a reference year will appear in the ylabel. However, when you revert to the original multi-year range, the reference year ylabel remains.

2) If datetick thinks there should only be one tick, the new version of tlabel will crash on tlabel>fixTicks line 1108. This is really due to buggy tick location calculations in datetick, and may only occur in older versions of Matlab (I'm running R2007a) since I believe datetick has been updated since then. This situation only seems to arise for a small subset of cases where data spans a year plus a few hours. Older versions of tlabel were able to handle this case.

Other than those two issues, great function, and I really like the new 'whichAxes' and 'reference' options.

10 Nov 2008 Accurate polygon extension Enlarges polygon by a specified range. Also generates internal polygons caused by intersections. Author: Krispijn Scholte

The Nov 10 update fixes the bug I was seeing that generated empty results; the extended polygons created for my test polygons look good now. This function is still slower than bufferm.m (by about a factor of 10), but has the very nice advantage of not requiring the Mapping Toolbox. Thanks to the author for the quick response to comments.

30 Oct 2008 Accurate polygon extension Enlarges polygon by a specified range. Also generates internal polygons caused by intersections. Author: Krispijn Scholte

This algorithm looks interesting, and I wanted to try to compare the computation time and results with Matlab's bufferm function (part of the Mapping Toolbox) and my own bufferm2 function (a modification on bufferm available on the FEX). I habitually use these functions to extend complex but non-self-intersecting polygons, usually the borders of various lakes, oceans, basins, etc. However, my tests (trying to buffer a simplified version of the Great Lakes) have so far failed to return a non-empty array. Stepping through the code, it seems the original polygon extension (lines 195-254) creates very interesting but unexpected modern-art scribble resembling the Lakes, which is then completely eliminated in the next step due self-intersection. Are there limitations to your algorithm that aren't mentioned here?

This function does seem a bit more limited than the functions I mentioned. It can only buffer outwards, not inwards. Also, it cannot handle NaNs in the polygon definition, which is the typical Matlab syntax to indicate a multi-segment polygon, both in plotting and the other polygon-related functions (mostly Mapping Toolbox functions). However, it doesn't rely on the Mapping Toolbox, which could be a nice advantage over bufferm and bufferm2. I'll withhold my rating until I determine the cause of my incorrect results.

Comments and Ratings on Kelly's Files View all
Updated File Comment by Comments Rating
23 Jul 2010 subdir: a recursive file search Performs a recursive file search using same input and output format as dir function Author: Kelly Kearney derek

There is one small issue on this file that is easily fixed. This script will only work on windows, because on line 25:
d=[d; {[rootpath '\' dnew(i).name]}];
and line 46:
d=[d; {[dtemp '\' dnew(i).name]}];

The backslash is the file separator only for window, for unix/linux this will cause problems because the file separator is '/'. This problem can easily be fixed by using filesep instead of '\'. i.e.:
d=[d; {[rootpath filesep dnew(i).name]}];
d=[d; {[dtemp filesep dnew(i).name]}];

09 Jun 2010 boundedline: line plots with shaded error/confidence intervals Plot one or more lines with a shaded boundary (can represent error, confidence intervals, etc). Author: Kelly Kearney Dylan

This is a very useful function that does almost exactly what I was trying to do, and it should save me a lot of time. Thanks for making it!

I think, though, that it would be even more useful if you made two modifications:

1) The reference color of the bounded area should be set independently (as an RGB array), rather than being constrained to be a lighter shade of the corresponding line color. This would be particularly relevant for users preparing b&w figures for publication who, for example, might want to use two black lines and two different shades of grey for the bounded areas. The specific example I provided could of course be facilitated simply by allowing separate transparency parameters for each bounded area, but that still would not provide as much flexibility as some users might want.

2) The default behavior of 'legend' is to use shaded boxes that are the same colors as the bounded areas. Some users might prefer that the legend use lines of the same color and style as the corresponding data. It would be nice to have the option of using either. I believe this could be controlled from within boundedline.m by setting the 'IconDisplayStyle ' property of the 'LegendEntry' array of each patch to 'on' or 'off'.

Example code:
set(get(get(hPatches(1),'Annotation'),'LegendInformation'),'IconDisplayStyle','off')

Also, there appears to be a bug (using R2007b): adding a legend to a figure that was made using the 'alpha' option results in no legend and no bounded areas.

19 May 2010 boundedline: line plots with shaded error/confidence intervals Plot one or more lines with a shaded boundary (can represent error, confidence intervals, etc). Author: Kelly Kearney Danziger, Zachary

Nice file. I enjoy the flexibility.

08 Apr 2010 vec2grid Reshapes vector data to a grid Author: Kelly Kearney Flamp, Stelios

Fair result, good and fast script.

08 Feb 2010 plotboxpos Returns the position of a plotted axis region Author: Kelly Kearney Hartogensis, Oscar

Top Tags Applied by Kelly
annotation, customization, directories, files, path
Files Tagged by Kelly View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
26 May 2010 Screenshot plotboxpos Returns the position of a plotted axis region Author: Kelly Kearney annotation, plotted, customization, plot, area, position 20 2
  • 4.0
4.0 | 3 ratings
05 May 2010 Screenshot boundedline: line plots with shaded error/confidence intervals Plot one or more lines with a shaded boundary (can represent error, confidence intervals, etc). Author: Kelly Kearney bounds line confidenc... 66 2
  • 5.0
5.0 | 1 rating
20 Jan 2010 Screenshot bufferm2 Creates a buffer zone around or inside a polygon or polygons Author: Kelly Kearney polygon, bufferm, buffer zone, buffer 17 1
  • 5.0
5.0 | 1 rating
30 Jun 2009 Screenshot tick2text: create easy-to-customize tick labels Changes tick marks to text objects that can be easily customized, maintains customization in zooming Author: Kelly Kearney graphics, customization, text, rotate, label, tick 41 4
  • 4.0
4.0 | 4 ratings
17 Oct 2008 subdir: a recursive file search Performs a recursive file search using same input and output format as dir function Author: Kelly Kearney subdir, directories, file, dir, recursive, search 22 2
  • 4.0
4.0 | 1 rating

Contact us at files@mathworks.com