help-octave
[Top][All Lists]
Advanced

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

Re: dynamic format specifiers


From: Søren Hauberg
Subject: Re: dynamic format specifiers
Date: Wed, 29 Jul 2009 12:00:27 +0200

ons, 29 07 2009 kl. 11:41 +0200, skrev Bart Vandewoestyne:
> How do i change my printf statement so that it works with any
> number of columns of A?

You can do something like

  fmt = strcat (repmat ("%g ", 1, k), "\n")

and then use 'fmt' as the first argument to 'printf'

Søren



reply via email to

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