octave-maintainers
[Top][All Lists]
Advanced

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

rat and rats ported from octave-forge


From: John W. Eaton
Subject: rat and rats ported from octave-forge
Date: Thu, 26 Jul 2007 12:01:58 -0400

On 26-Jul-2007, Donald Parsons wrote:

| David, thanks for the rat/rats support.
| 
| (Fedora 6 + octave cvs)
| The format of the rat(s) output seems to be missing a
| new line or two:
| _________________________________________
| 
| address@hidden octave]$ octave
| GNU Octave, version 2.9.12+ (and version 2.9.13+)
| 
| Octave was configured for "x86_64-unknown-linux-gnu".
| 
| octave:1> h=hilb(3)
| h =
| 
|    1.00000   0.50000   0.33333
|    0.50000   0.33333   0.25000
|    0.33333   0.25000   0.20000
| 
| octave:2> rats(h)
| ans =           1        1/2        1/3
|         1/2        1/3        1/4
|         1/3        1/4        1/5

I think the source of the problem is that the string computed by rats
should be a character array with the same number of rows as the
original numeric matrix instead of a character array with one row and
embedded newline characters.  If it were, then Octave would display it
as you expect.

| On a totally unrelated topic,

It would be best to use a totally unrelated thread for a totally
unrelated topic.

jwe


reply via email to

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