help-octave
[Top][All Lists]
Advanced

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

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)

address@hidden wrote:
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)



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

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,
  



Subject:
Re: tril/triu not preserving sparseness
From:
David Bateman <address@hidden>
Date:
Fri, 25 Jan 2008 16:05:14 +0100
To:
Martijn van Oosterhout <address@hidden>
To:
Martijn van Oosterhout <address@hidden>
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

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.


  



Subject:
Re: ODF spreadsheets
From:
Muthiah Annamalai <address@hidden>
Date:
Thu, 24 Jan 2008 21:40:52 -0600
To:
Tribo Laboy <address@hidden>
To:
Tribo Laboy <address@hidden>
CC:
address@hidden

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:
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 address@hidden https://www.cae.wisc.edu/mailman/listinfo/help-octave







reply via email to

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