help-octave
[Top][All Lists]

## Re: Help-octave Digest, Vol 22, Issue 50

 From: Mats Hedlund Subject: Re: Help-octave Digest, Vol 22, Issue 50 Date: Fri, 25 Jan 2008 15:53:33 -0700 User-agent: Thunderbird 2.0.0.6 (X11/20071022)

```Send Help-octave mailing list submissions to

To subscribe or unsubscribe via the World Wide Web, visit
https://www.cae.wisc.edu/mailman/listinfo/help-octave
or, via email, send a message with subject or body 'help' to

You can reach the person managing the list at

than "Re: Contents of Help-octave digest..."
```
```
Today's Topics:

1. Re: tril/triu not preserving sparseness (Martijn van Oosterhout)
2. Re: tril/triu not preserving sparseness (David Bateman)
3. Re: ODF spreadsheets (Muthiah Annamalai)
```

 Subject: Re: tril/triu not preserving sparseness From: "Martijn van Oosterhout" Date: Fri, 25 Jan 2008 13:11:13 +0100 To: "David Bateman"

```On Jan 25, 2008 12:28 PM, David Bateman <address@hidden> wrote:
```
```Fixed in a later version of Octave... The relevant changelog entry is

* general/tril.m, general.triu.m:
Use resize (resize (x, 0), nr, nc) rather than zeros (nr, nc)
to allow user types to work correctly.
```
```
That commit added the resize, which is the cause of my problems. It
only goes wrong for complex matrices. You're saying that something
else changed in octave so that the above works? Because on my machine
I get this:

octave:1> S=speye(1000); issparse(S)
ans =  1
octave:2> issparse( resize( resize(S,0),1000, 1000 ))
ans =  1
octave:3> S=speye(1000)*I; issparse(S)
ans =  1
octave:4> issparse( resize( resize(S,0),1000, 1000 ))
ans = 0

Anyway, I found another way of solving the problem. If I get around to
upgrading I'll try it out there... Thanks anyway.

Have a nice day,
```

 Subject: Re: tril/triu not preserving sparseness From: David Bateman Date: Fri, 25 Jan 2008 16:05:14 +0100 To: Martijn van Oosterhout
 To: Martijn van Oosterhout CC: address@hidden

```Martijn van Oosterhout wrote:
```
```On Jan 25, 2008 12:28 PM, David Bateman <address@hidden> wrote:

```
```Fixed in a later version of Octave... The relevant changelog entry is

* general/tril.m, general.triu.m:
Use resize (resize (x, 0), nr, nc) rather than zeros (nr, nc)
to allow user types to work correctly.

```
```That commit added the resize, which is the cause of my problems. It
only goes wrong for complex matrices. You're saying that something
else changed in octave so that the above works? Because on my machine
I get this:

octave:1> S=speye(1000); issparse(S)
ans =  1
octave:2> issparse( resize( resize(S,0),1000, 1000 ))
ans =  1
octave:3> S=speye(1000)*I; issparse(S)
ans =  1
octave:4> issparse( resize( resize(S,0),1000, 1000 ))
ans = 0

Anyway, I found another way of solving the problem. If I get around to
upgrading I'll try it out there... Thanks anyway.

Have a nice day,

```
```This works correctly in Octave 3.0

D.

```

 Subject: Re: ODF spreadsheets From: Muthiah Annamalai Date: Thu, 24 Jan 2008 21:40:52 -0600 To: Tribo Laboy

Tribo Laboy wrote:
Hello.

Is this anywhere close to what you are looking for?

I confirmed it works under MATLAB, but under Octave on WinXP I Have
some problems with uncompressing the the ods file. I will look a bit
deeper into it when I have some more time.

Regards,
TL

It looks interesting, GPL'ed m-file code. Relies on xmlread() which is in octave-forge
toolbox I think.

Also the problem with ODF I suspect its huge to cover all bases, and any implementation
is going to be a broken subset. Writing a huge matrix in ascii and putting that into a large
XML file and zipping it up is not my idea of a nice matrix format.

Sure numbers can be dealt with but there are two missing functionalities with CSV:
1. can not deal with strings (for variable names, headers etc)
2. can not read/write data to/from a specific sheet in a ODS file

In my mind that's all what would be needed for dealing with ODS formats.
/Mats

-Muthu

```
_______________________________________________
Help-octave mailing list