image thumbnail

updated 5 years ago

Shortcut tools by Richie Cotton

Programmatically manipulate shortcuts. (shortcut, toolbar, utility)

AddBrowserFavourite(label, callback)

AddShortcut(label, callback, icon, category, editable, ov...

AddShortcutCategories(categories)

image thumbnail

updated almost 6 years ago

Preference tools by Richie Cotton

Programmatically get/set GUI preferences. (preferences, utility)

CheckForJVM()

GetPreference(name)

JavaColor(rgb)

image thumbnail

updated almost 6 years ago

Generate a new function m-file, with documentation by Richie Cotton

This makes it really easy to document your functions in a standard format. (utility, template, development)

GenerateFunctionMFile(ask)

GetUserLoginName()

fopen0(varargin)

image thumbnail

updated almost 6 years ago

Check the number of arguments to a function by Richie Cotton

Prettify checking the number of arguments to a function. (inputs, utility)

CheckNumberArgs(minargs, maxargs)

image thumbnail

updated almost 6 years ago

Set default values by Richie Cotton

A very simple function that initialises a missing or empty value in the caller function. (default, inputs, utility)

SetDefaultValue(position, argName, defaultValue)

image thumbnail

updated 6 years ago

ismonotonic by Richie Cotton

Determines whether or not a vector or matrix is monotonically increasing or decreasing. (is, monotonic, boolean)

ismonotonic(x, strict, direction, dim)

image thumbnail

updated 6 years ago

logical2cellstr, cellstr2logical by Richie Cotton

Convert from a logical array to a cell array of 'true'/'false' strings and back again. (utility, conversion, logical)

cellstr2logical(c, casesensitive)

logical2cellstr(tf)

image thumbnail

updated 7 years ago

Almost a ternary conditional operator by Richie Cotton

Function for vectorised if-else statements. (ternary, vectorisation, utilities)

vif(truth,yes,no)

image thumbnail

updated 7 years ago

Calculate number of bins for histogram by Richie Cotton

Automatically calculates the 'best' number of bins for a histogram. (annotation, customization, hist)

calcnbins.m

histx(varargin)

image thumbnail

updated 7 years ago

ORDNUMSTR by Richie Cotton

Makes an ordinal numeral string from a number, e.g. 3 becomes 3rd. (ordinal numeral, string convertor, utilities)

ordnumstr(number, includenumber)

image thumbnail

updated 9 years ago

logticks by Richie Cotton

Calculates tick marks at appropriate points for log-scale plots. (log ticks plot axes)

logticks(dataMin, dataMax, n)

image thumbnail

updated almost 10 years ago

Jitter by Richie Cotton

Adds a small amount of noise to an array. Ideal for signal processing or chaos theory. (jitter, random, noise)

jitter(x, factor, uniformOrGaussianFlag, smallOrRangeFlag...

image thumbnail

updated almost 10 years ago

Geometric standard deviation by Richie Cotton

Calculates the geometric standard deviation of an array. (statistics, probability, geometric standard de...)

geostd(x, flag, dim)

image thumbnail

updated almost 10 years ago

summary by Richie Cotton

Calculates summary statistics. (statistics, probability, summary)

fullsummary(x, dim, stdflag)

summary(x, dim, stdflag)

Contact us