Rank: 321 based on 346 downloads (last 30 days) and 6 files submitted
photo

Anthony Kendall

E-mail

Personal Profile:

Professional Interests:

 

Watch this Author's files

 

Files Posted by Anthony View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
04 Nov 2009 Recursive addpath Recursively adds directories to MATLAB path, optionally ignores some Author: Anthony Kendall directories, recursive, directory, path, utilities, addpath 146 12
  • 4.0
4.0 | 8 ratings
28 Apr 2009 Date to Decimal Day of Year Convert a vector of MATLAB serial dates to decimal days since the start of the year. Author: Anthony Kendall clock, fun, date day of year 49 6
  • 3.5
3.5 | 4 ratings
21 Mar 2009 Determine and count unique values of an array Very fast function to determine and count unique values of numeric, logical, char, cell arrays. Author: Anthony Kendall accumarray, unique, count 73 6
  • 4.5
4.5 | 4 ratings
29 Sep 2008 Generalized Objective Function Allows any MATLAB function to easily be optimized Author: Anthony Kendall objective, optimization, function, matlab, generalized 20 4
  • 3.0
3.0 | 2 ratings
19 Mar 2008 Weighted Means Calculates the weighted geometric, arithmetic, or harmonic means of input vectors. Author: Anthony Kendall weighted mean geometr... 25 0
Comments and Ratings by Anthony View all
Updated File Comments Rating
04 Nov 2009 Recursive addpath Recursively adds directories to MATLAB path, optionally ignores some Author: Anthony Kendall

Thanks Jim!

I made that change for compatibility with Macs. Also, based on your first comment back in October I increased the speed of the code by a factor of 3 in a moderate-sized directory tree.

28 Apr 2009 Date to Decimal Day of Year Convert a vector of MATLAB serial dates to decimal days since the start of the year. Author: Anthony Kendall

Ashley,
Not sure why FEX didn't have the date2doy. Should have been updated last January 18th, but something must have gone wrong there. I resubmitted the function.

21 Mar 2009 Determine and count unique values of an array Very fast function to determine and count unique values of numeric, logical, char, cell arrays. Author: Anthony Kendall

Bruno,
Thanks for making this point. This can be addressed by specifying the 'float' option in count_unique. However, I've added also added a check that when the maximum value of the input array is much greater than its number of elements, accumarray is not used.

I ran your example on the unmodified code, and got results similar to yours. Now, on the modified code (without specifying the 'float' option, which does not use accumarray), the run times are both trivial in your example. The change increased run times for large array integer values slightly, and the description above is modified to reflect that.

Thanks again.

19 Mar 2009 Solar Azimuth and Elevation Estimation Predict the topocentric solar position defined by geodetic lat, lon, Alt, and a universal time Author: Darin Koblick

Excellent function, it's fast, compact, and easily modified for my particular needs. Thank you very much! BTW, I compared it with sun position tables, (http://www.srrb.noaa.gov/highlights/sunrise/azel.html) and it does very well.

18 Mar 2009 Determine and count unique values of an array Very fast function to determine and count unique values of numeric, logical, char, cell arrays. Author: Anthony Kendall

John,
The code is primarily used to count the number of each unique instance within an array, but as a side benefit is slightly faster than the existing unique function (and quite a bit faster for integer-valued arrays). I'll modify the description to make this more obvious.

Thanks for your comments.

Comments and Ratings on Anthony's Files View all
Updated File Comment by Comments Rating
04 Nov 2009 Recursive addpath Recursively adds directories to MATLAB path, optionally ignores some Author: Anthony Kendall Kendall, Anthony

Thanks Jim!

I made that change for compatibility with Macs. Also, based on your first comment back in October I increased the speed of the code by a factor of 3 in a moderate-sized directory tree.

02 Nov 2009 Recursive addpath Recursively adds directories to MATLAB path, optionally ignores some Author: Anthony Kendall Jim

It seems I can't figure out how to work this comment system. The main point of the last post was that the code doesn't work on a MAC as strStarDir\*. doesn't work, it only returns . and ..

02 Nov 2009 Recursive addpath Recursively adds directories to MATLAB path, optionally ignores some Author: Anthony Kendall Jim

OOPS, that second part should read:
saSubDirs = dir(strStartDir);
saSubDirs = saSubDirs([saSubDirs.isdir]);

12 Oct 2009 Recursive addpath Recursively adds directories to MATLAB path, optionally ignores some Author: Anthony Kendall Jim

12 Oct 2009 Recursive addpath Recursively adds directories to MATLAB path, optionally ignores some Author: Anthony Kendall Jim

Just to clarify on that last point, keeping a cell array of all directories to process, then using addpath(pathsOut{:},strXorIntAddpathMode) (where pathsOut is a cell array of all paths to add) works well

Top Tags Applied by Anthony
accumarray, addpath, clock, count, date day of year
Files Tagged by Anthony View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
04 Nov 2009 Recursive addpath Recursively adds directories to MATLAB path, optionally ignores some Author: Anthony Kendall directories, recursive, directory, path, utilities, addpath 146 12
  • 4.0
4.0 | 8 ratings
28 Apr 2009 Date to Decimal Day of Year Convert a vector of MATLAB serial dates to decimal days since the start of the year. Author: Anthony Kendall clock, fun, date day of year 49 6
  • 3.5
3.5 | 4 ratings
21 Mar 2009 Determine and count unique values of an array Very fast function to determine and count unique values of numeric, logical, char, cell arrays. Author: Anthony Kendall accumarray, unique, count 73 6
  • 4.5
4.5 | 4 ratings
29 Sep 2008 Generalized Objective Function Allows any MATLAB function to easily be optimized Author: Anthony Kendall objective, optimization, function, matlab, generalized 20 4
  • 3.0
3.0 | 2 ratings
19 Mar 2008 Weighted Means Calculates the weighted geometric, arithmetic, or harmonic means of input vectors. Author: Anthony Kendall weighted mean geometr... 25 0
 

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