octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #34634] Mat-File readable by MatLab but not by


From: anonymous
Subject: [Octave-bug-tracker] [bug #34634] Mat-File readable by MatLab but not by octave
Date: Mon, 24 Oct 2011 13:13:50 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1

URL:
  <http://savannah.gnu.org/bugs/?34634>

                 Summary: Mat-File readable by MatLab but not by octave
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mo 24 Okt 2011 13:13:48 UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Thomas Bruns
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.4.3
        Operating System: Any

    _______________________________________________________

Details:

Mat-Files containing generated with the LabVIEW library 
http://lavag.org/topic/10976-a-mat-file-io-library
from so called Cluster data types (structures) can be read by MatLab and get
represented as a structure.

load 'test.labview.mat'

works in matlab.
The same file cannot be read by octave:

octave:5> load "test.labview.mat"
error: load: invalid array name subelement
error: load: trouble reading binary file `test.labview.mat'


When first loaded and saved by matlab, then octave is able to read the
resulting mat-file.

matlab> load 'test.labview.mat'
matlab> save 'test.labview.matlab.mat' 'Cluster'

octave:1> load "test.labview.matlab.mat"
octave:2> who
Variables in the current scope:

Cluster  ans

octave:3> Cluster 
Cluster =

  scalar structure containing the fields:

    Numeric =  6451
    Boolean =  1
    Array =

Hello
World

    Cluster =

      scalar structure containing the fields:

        Array =

           1   4
           2   5
           3   6




More Details:
The error appears regardless what data types the labview cluster contains.
The error appears for string arrays, too
It does not appear for single strings, single numeric data, or numeric
arrays.

The problem occurs under Linux and Windows at least.
I don't know whether it's really a bug, or if MatLab is more fault tolerant
than octave concerning mat-files. 
At least it i a kind of incompatibility.

The example files named above are attached.





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mo 24 Okt 2011 13:13:48 UTC  Name: test.labview.mat  Size: 316B   By:
None

<http://savannah.gnu.org/bugs/download.php?file_id=24189>
-------------------------------------------------------
Date: Mo 24 Okt 2011 13:13:48 UTC  Name: test.labview.matlab.mat  Size: 301B  
By: None

<http://savannah.gnu.org/bugs/download.php?file_id=24190>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34634>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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