help-octave
[Top][All Lists]
Advanced

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

RE: vectorizing fprintf?


From: Goebel, Juergen
Subject: RE: vectorizing fprintf?
Date: Wed, 23 Jul 2008 10:53:13 +0200

> Jaroslav Hajek wrote:

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

Not exactly.

a = sprintf ("%i,%i", [(1:10), (11:20)].')

shows the same result as

a = sprintf ("%i,%i", (1:10), (11:20))

and as

a = sprintf ("%i,%i", [(1:10), (11:20)])

1,2 3,4 5,6 7,8 9,10 11,12 13,14 15,16 17,18 19,20

What I need is 

1,11 2,12 3,13 4,14 5,15 6,16 7,17 8,18 9,19 10,20

though.

Or did I misunderstand you?

Jürgen



reply via email to

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