Rank: 192 based on 1024 downloads (last 30 days) and 9 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
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 153 4
  • 3.66667
3.7 | 3 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 139 1
  • 4.0
4.0 | 1 rating
29 Sep 2008 vec2grid Reshapes vector data to a grid Author: Kelly Kearney matrices, griddata, reshape, regridding, grid 108 0
24 May 2007 Screenshot plotboxpos Returns the position of a plotted axis region Author: Kelly Kearney annotation, plotted, customization, plot, area, position 104 2
  • 3.5
3.5 | 2 ratings
06 Mar 2007 depfuntoolbox Determines the functions a file depends on, separated by toolbox Author: Kelly Kearney directories, depfun toolbox file d..., path, files 121 1
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
03 Sep 2009 subdir: a recursive file search Performs a recursive file search using same input and output format as dir function Author: Kelly Kearney Sodhi, Raj

It works great!.

>> a = subdir([pwd '\*level1*.csv'])

a =

19x1 struct array with fields:
    name
    date
    bytes
    isdir
    datenum

My only problem when I started using it was that it really does require an extension.

>> a = subdir([pwd '\*level1*'])
??? Undefined function or variable "filter".

Error in ==> subdir at 90
    NewFiles = dir(fullfile(pathfolders{ifolder}, filter));

>>

I started troubleshooting and realized that the var filter never got defined on line 71 or 74.

Thanks for your file! Really elegant code.

yours,

Raj

28 Jul 2009 plotboxpos Returns the position of a plotted axis region Author: Kelly Kearney Jakob

05 Nov 2007 interpshapefile Determine value at a given location or locations based on data in an ESRI shapefile Author: Kelly Kearney Williams, Nick

Extremely useful and exactly what I needed. Works flawlessly even on complex shapefiles. My only question is why the input shapefile must contain Lat-Long fields. Can it work for X-Y UTM coordinates?

01 Oct 2007 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 Hart, Frank

I like this function's potential, but I'm not presently able to use it well. I'm working with x-axis limits that are multiples of pi, and I'd like to label the axis as such. It is unclear how to do this. Your example simply appends a pi. I'd like to specify the XTicks at pi-based intervals (possibly fractional), then use tick2text to place labels with pi in the tick marks.

For example, consider a uniform probability density function for a radian angle. It is distributed (x-axis) between [-pi,pi] and has a value of 1/(2*pi). I'd like to tick the x-axis at, say, pi/4 intervals, and the y-axis at 1/pi, 1/[2*pi], 1/[4*pi], etc. etc.

04 Sep 2007 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 ., Andrew

When using this function, the tick labels overlap axis labels, so this function is only useful if xlabel or ylabel is not required

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
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 153 4
  • 3.66667
3.7 | 3 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 139 1
  • 4.0
4.0 | 1 rating
29 Sep 2008 vec2grid Reshapes vector data to a grid Author: Kelly Kearney matrices, griddata, reshape, regridding, grid 108 0
24 May 2007 Screenshot plotboxpos Returns the position of a plotted axis region Author: Kelly Kearney annotation, plotted, customization, plot, area, position 104 2
  • 3.5
3.5 | 2 ratings
06 Mar 2007 depfuntoolbox Determines the functions a file depends on, separated by toolbox Author: Kelly Kearney directories, depfun toolbox file d..., path, files 121 1
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com