Send Help-octave mailing list submissions to
address@hidden
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
address@hidden
You can reach the person managing the list at
address@hidden
When replying, please edit your Subject line so it is more specific
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)
On Jan 25, 2008 12:28 PM, David Bateman <address@hidden> wrote:
Fixed in a later version of Octave... The relevant changelog entry is
2006-04-02 David Bateman <address@hidden>
* 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,
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
2006-04-02 David Bateman <address@hidden>
* 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.
Tribo Laboy wrote:
Hello.
Is this anywhere close to what you are looking for?
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=18222&objectType=file
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.
Best method was suggested earlier; csv read/write. Octave loads CSV's
nicely.
Sure numbers can be dealt with but there are two missing
functionalities with CSV: