[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: *printf Understanding
From: |
Bill Denney |
Subject: |
Re: *printf Understanding |
Date: |
Tue, 7 Mar 2006 13:40:43 -0500 (EST) |
On Tue, 7 Mar 2006, John W. Eaton wrote:
Yes, I think it is, as I think field widths are always minimums. You
are printing " ", so that will always have a width of at least 1
character.
Try
sprintf('%*s', 0, '')
instead.
That does what I was hoping for. Thanks.
Bill
--
"A kiss can be a comma, a question mark or an exclamation point."
-- Mistinguett
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------