File Exchange

image thumbnail

dispn(X,N) == displays matrix X to N digits of precision

version 1.1 (1.43 KB) by

DISPN(X,N) displays matrix X to N digits of precision.

4 Downloads

Updated

View License

DISPN(X,N) displays matrix X to N digits of precision. See also DISP(X), which displays matrix X in the current screen format.

Comments and Ratings (2)

Jan Simon

Jan Simon (view profile)

@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()).

Updates

1.1

The updated version can now handle a vector N that specifies different numbers of digits for each column of X.

MATLAB Release
MATLAB 7.10 (R2010a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video