help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Repeated fields in printf


From: Mike B.
Subject: Repeated fields in printf
Date: Thu, 26 Aug 2010 18:57:39 -0700 (PDT)

Hi All,

When using printf/sprintf/fprintf is it possible to specifiy a field is 
repeated, for example something like:

printf( "3*%3d", 100*rand( 1, 3 ) )

would use three fields each of type %03d. this is instead of 

printf( "%3d %3d %3d", 100*rand( 1, 3 ) )

Thanks,
Mike.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]