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

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

[Octave-bug-tracker] [bug #42562] 3.8.1 can't load mat file (>maltab r20


From: Juan Pablo Carbajal
Subject: [Octave-bug-tracker] [bug #42562] 3.8.1 can't load mat file (>maltab r2010b)
Date: Sun, 15 Jun 2014 23:18:19 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36

Follow-up Comment #5, bug #42562 (project octave):

Indeed, the following lines in R generate the problem

in R:

install.packages("R.matlab")
library(R.matlab)
latency <- 0
writeMat("test.mat",latency=latency)


in Octave (dev)

load test.mat
whos
Variables in the current scope:

   Attr Name         Size                     Bytes  Class
   ==== ====         ====                     =====  ===== 
        ans          1x20                        20  char
        latency      1x0                          0  double

Total is 20 elements using 20 bytes


The file test.m is incorrectly read in Octave. However python reads it without
a problem.

In python:
+veratim+
from scipy.io import loadmat
loadmat("test.mat")
{'__globals__': [],
 '__header__': 'MATLAB 5.0 MAT-file, Platform: unix, Software: R v3.0.2,
Created on: Mon Jun 16 01:12:34 2014',
 '__version__': '1.0',
 'latency': array([ 0.])}




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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