bugGNU Octave - Bugs: bug #36603, sparse matrices with no nonzero...

 
 

bug #36603: sparse matrices with no nonzero elements cannot be loaded in Matlab

Submitted by:  None
Submitted on:  Thu 07 Jun 2012 02:10:01 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: Jordi Gutiérrez Hermoso <jordigh>
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 3.6.1
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 11 Sep 2012 01:19:08 PM UTC, comment #4:

What the hell...

How did you figure out that this was the fix?

Yes, it works. Stupid Matlab bugs. I wish Matlab obeyed its own spec.

Jordi Gutiérrez Hermoso <jordigh>
Project AdministratorIn charge of this item.
Tue 11 Sep 2012 05:50:04 AM UTC, comment #3:

I checked in the following change:

http://hg.savannah.gnu.org/hgweb/octave/rev/9ed4fc294f3f

Does this fix the problem for you?

John W. Eaton <jwe>
Project Administrator
Tue 11 Sep 2012 05:37:05 AM UTC, comment #2:

I just spent some time looking byte-for-byte at the resulting mat files, and I'm quite stumped. As far as I can tell, Octave obeys the published spec for mat files.

Could you please show me the following mat files? I'll try to reverse-engineer the format that Matlab expects:

Then send me s.mat, o.mat, and x.mat.

Jordi Gutiérrez Hermoso <jordigh>
Project AdministratorIn charge of this item.
Tue 11 Sep 2012 01:40:47 AM UTC, comment #1:

Looks like sparse(5,5) (i.e. sparse matrix with no nonzero data) is also a problem.

I'm investigating this now, since it just bit me.

Jordi Gutiérrez Hermoso <jordigh>
Project AdministratorIn charge of this item.
Thu 07 Jun 2012 02:10:01 AM UTC, original submission:

I create a sparse matrix with one empty dimension and I save it. For example

When I try to load it in Matlab, I get the following error:

I am using Octave 3.6.1, compiled from source on 64-bit Ubuntu 11.10, and Matlab R2010a.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by jordigh (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 11 Sep 2012 01:19:08 PM UTCjordighStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Tue 11 Sep 2012 05:50:04 AM UTCjweStatusConfirmed=>Ready For Test
    Tue 11 Sep 2012 01:40:47 AM UTCjordighStatusNone=>Confirmed
      Assigned toNone=>jordigh
      SummarySaving sparse matrix with one 0 dim, cannot be loaded in Matlab=>sparse matrices with no nonzero elements cannot be loaded in Matlab

    Back to the top


    Powered by Savane 3.1-cleanup1