DISPN(X,N) displays matrix X to N digits of precision. See also DISP(X), which displays matrix X in the current screen format.
@Brenden: You have cared for a useful documentation by specifying the inputs, outputs, examples and a "See also" line. Unfortunately you do not follow the Matlab standards: H1 line after the function() line, the help text following, and the "See also" line containing the names of related functions.
As MLINT warns, FPRINTF() is more efficient than DISP(SPRINTF()).
Which part of the one-liner in http://www.mathworks.com/matlabcentral/answers/40351-help-displaying-a-formatted-matrix-to-the-command-window you didn't like?
The updated version can now handle a vector N that specifies different numbers of digits for each column of X.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.