Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2004
    Posts
    52

    Unanswered: Simple question about PRINTF

    Hi all.

    I just learned enough Perl to solve some small problems
    and I am now stuck with something very simple.
    Could someone shed some light on the following problem ?

    I have a matrix with an unknown number of
    real numbers (I mean, the total number is a variable).
    How do I plot this matrix using 3 numbers per line ?

    Example :

    matrix : 2.1
    10.5
    3.0
    4.63
    -1.1
    4.3
    3.3

    Result : 2.1 10.5 3.0
    4.63 -1.1 4.3
    3.3

    I was going to use xargs inside my Perl code but it did not
    work either.

    Thanks a lot,

    S.

  2. #2
    Join Date
    Feb 2004
    Posts
    52

    Talking Solved

    Ok, never mind. One extra sip of java and the problem is gone.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •