Description: quick replicates simple format string and compose a complex format string
Usage:
s=formats(|[times1],formatstring1,|[times2],[formatstring2],...)
s return times1 replicates formatstring1,then times2 replicates formatstring2, ...
for example:
x=rand(1,5) y=[ hello where which ] z=1:3
sprintf([ x= ,formats(5, 5.2f , \n ), y= ,formats( s , \n ), z= ,formats(3, d )],x,y ,z)
See also FORMAT, REPMAT, FPRINTF, SPRINTF
To Search:
File list (Check if you may need any files):
formats.m