help-octave
[Top][All Lists]
Advanced

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

Re: vectorizing fprintf?


From: Jaroslav Hajek
Subject: Re: vectorizing fprintf?
Date: Wed, 23 Jul 2008 09:17:14 +0200

fprintf traverses the argument by columns (as stored in memory). Hence, is

fprintf (fid, "\n(%6.3f,%6.3f)", [(1:n) / N, real(e(1:n))].')

what you need?

On Wed, Jul 23, 2008 at 8:47 AM, Goebel, Juergen
<address@hidden> wrote:
> Hi,
>
> Is it possible to vectorize the printf-command like
>
>   fprintf (fid, "\n(%6.3f,%6.3f)", (1:n) / N, real (e(1:n)))
>
> without 'looping'?  Using the above mentioned command
> results in printing (1:n) / N first and afterwards real(e(1:n))
> instead of 'pairing' the data, which is what I was afraid of
> (and expected).  Google couldn't help me this time.
>
> Regards,
>
> Jürgen
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
>
>



-- 
RNDr. Jaroslav Hajek
computing expert
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz



reply via email to

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