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

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

[Octave-bug-tracker] [bug #49830] xlsread difference vs. matlab


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #49830] xlsread difference vs. matlab
Date: Tue, 20 Mar 2018 14:30:47 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.1

Follow-up Comment #2, bug #49830 (project octave):

These days (IIRC using io > 2.4.9) you can get Matlab's behavior by using a
5th argument to xlsread.m:

:
>> [a, b, c] = xlsread ('test1.xlsx', 4, "c2:f7", "poi", struct
("strip_array", 0))
a =

   0.010000   0.010000   0.010000   0.010000

b = {}(0x0)
c =
{
  [1,1] = [](0x0)
  [2,1] = [](0x0)
  [3,1] =  0.010000
  [4,1] = [](0x0)
  [5,1] = [](0x0)
  [6,1] = [](0x0)
  [1,2] = [](0x0)
  [2,2] = [](0x0)
  [3,2] =  0.010000
  [4,2] = [](0x0)
  [5,2] = [](0x0)
  [6,2] = [](0x0)
  [1,3] = [](0x0)
  [2,3] = [](0x0)
  [3,3] =  0.010000
  [4,3] = [](0x0)
  [5,3] = [](0x0)
  [6,3] = [](0x0)
  [1,4] = [](0x0)
  [2,4] = [](0x0)
  [3,4] =  0.010000
  [4,4] = [](0x0)
  [5,4] = [](0x0)
  [6,4] = [](0x0)
}


If / when the spreadsheet I/O is going to core (some day, some time) this
could be made the default behavior.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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