Be the first to rate this file! 1 Download (last 30 days) File Size: 1.43 KB File ID: #37025

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

by

 

05 Jun 2012 (Updated )

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

| Watch this File

File Information
Description

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

Required Products MATLAB
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
06 Jun 2012 Jan Simon

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

05 Jun 2012 Oleg Komarov

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?

Updates
07 Jun 2012

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

Contact us