Unformatted text preview: *5 Can be a number, or an asterisk (*) to refer to an argument in the input
list. For example, the input list ( ' % 6 . 4f ‘ , pi) is equivalent to
('%*.*f', 6, 4, pi). o Flags ;
E.
i”
s
t
i
x
L
i ...AMMWMWW..WWWNMWWW.gmmmtfsmMWMWW , i l :Padwithzeros. ' E’O' ‘V%05.2f ‘ i
! o identiﬁer Order for processing inputs. Use the syntax 11$, where n represents the
position of the value in the input list. Forexample, '%3$s %2$s %l$s %2$s' prints inputs ‘A', 'B', 'C'
as follows: C B A B. The following limitations apply to conversions: o Numeric conversions print only the real component of complex numbers. o if you apply an integer or string conversion to a numeric value that
contains a fraction, MATLAB overrides the speciﬁed conversion, and
uses %e. o If you apply a string conversion (% s) to integer values, MATLAB:
:1 issues a warning. :1 Converts values that correspond to valid character codes to
characters. For example, ' %s ' converts [65 66 67] to ABC. 0 Different platforms display exponential notation (such as %e) with a
different number of digits in the exponent. Window 1,. 23e+0043 sm.w..m,_l~.wms WWW”, UNIX ‘ i 1.233404 r” 5
3 0 Different platforms display negative zero (—0) differently. ...
View
Full Document
 Fall '08
 Johnson

Click to edit the document details