MATLAB See also Convenient (but no faster) replacement of for loops: fevalArrays - Used to apply the same operation to a stack of array elements. fevalImages - Used to apply the same operation to all images in given directory. fevalMats - Used to apply the same operation to all .mat files in given directory. Timing: ticStatus - Used to display the progress of a long process. tocStatus - Used to display the progress of a long process. Array manipulation: arrayCrop - Used to crop a rectangular region from an n dimensional array. arrayToDims - Pads or crops I appropriately so that size(IC)==dims. cell2array - Flattens a cell array of regular arrays into a regular array. mat2cell2 - Break matrix up into a cell array of same sized matrices. Display: c - clc - clear command window. cc - close all, clc ccc - clear, close all, clc, clear global figureResized - Creates a figures that takes up certain area of screen. imLabel - Improved method for labeling figure axes. plotEllipse - Adds an ellipse to the current plot. plotGaussEllipses - Plots 2D ellipses derived from 2D Gaussians specified by mus & Cs. text2 - Wrapper for text.m that ensures displayed text fits in figure. Miscellaneous: checkNumArgs - Helper utility for checking numeric vector arguments. gauss2ellipse - Creates an ellipse representing the 2D Gaussian distribution. getPrmDflt - Helper to set default values (if not already set) of parameter struct. ind2sub2 - Improved version of ind2sub. isfield2 - Similar to isfield but also test whether fields are intitialized. int2str2 - Convert integer to string of given length; improved version of int2str. normpdf2 - Normal prob. density function (pdf) with arbitrary covariance matrix. num2strs - Applies num2str to each element of an array X. randint2 - Faster but restricted version of randint. rotationMatrix - Performs different operations dealing with a rotation matrix simpleCache - A simple cache that can be used to store results of computations. sub2ind2 - Improved version of sub2ind. subsToArray - Converts subs/vals image representation to array representation. subsampleMatrix - Samples elements of X so result uses at most maxMegs megabytes of memory. Thin plate splines: tpsGetWarp - Given two sets of corresponding points, calculates warp between them. tpsInterpolate - Apply warp (obtained by tpsGetWarp) to a set of new points. tpsInterpolateIm - Interpolate Isrc according to the warp from Isrc->Idst. tpsRandom - Obtain a random warp with the same bending energy as the original.