image thumbnail

updated 4 years ago

Determine and count unique values of an array by Anthony Kendall

Very fast function to determine and count unique values of numeric, logical, char, cell arrays. (unique, count, accumarray)

count_unique(x,option)

image thumbnail

updated almost 5 years ago

Recursive addpath by Anthony Kendall

Recursively adds directories to MATLAB path, optionally ignores some (path, directories, files)

addpath_recurse(strStartDir, caStrsIgnoreDirs, strXorIntA...

image thumbnail

updated 5 years ago

Date to Decimal Day of Year by Anthony Kendall

Convert a vector of MATLAB serial dates to decimal days since the start of the year. (clock, fun, date day of year)

date2doy(inputDate)

image thumbnail

updated almost 6 years ago

Generalized Objective Function by Anthony Kendall

Allows any MATLAB function to easily be optimized (optimization, objective, function)

objective_function(firstArg,funcName,evalLocs,obs,objName)

image thumbnail

updated 6 years ago

Weighted Means by Anthony Kendall

Calculates the weighted geometric, arithmetic, or harmonic means of input vectors. (weighted mean geometr...)

weighted_mean(typeMean,varargin)

image thumbnail

updated 6 years ago

Unit Conversion by Anthony Kendall

A simple unit conversion function that is easily extended. (unit conversion simpl...)

[output]=unit_conversions(input,varargin)

Contact us