Be the first to rate this file! 5 Downloads (last 30 days) File Size: 1.43 KB File ID: #37025 Version: 1.1

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



05 Jun 2012 (Updated )

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

| Watch this File

File Information

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

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

Comment only
05 Jun 2012 Oleg Komarov

Oleg Komarov (view profile)

Which part of the one-liner in you didn't like?

Comment only
07 Jun 2012 1.1

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

Contact us