[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #50813] importdata returns cell-of-strings ins
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #50813] importdata returns cell-of-strings instead of struct |
Date: |
Wed, 1 Apr 2020 05:02:43 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
Follow-up Comment #13, bug #50813 (project octave):
Another example where Octave's importdata output differs from Matlab's:
>>
urlwrite('https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv','time_series_covid19_confirmed_global.csv');
>> M = importdata('time_series_covid19_confirmed_global.csv')
M =
struct with fields:
data: [256×72 double]
textdata: {257×74 cell}
Octave returns a 257x1 cell array with each row stored as a string. With a
importdata('...',',',1) call, Matlab's output is unchanged while Octave then
returns a struct with fields of size:
data: [256x73 double]
textdata: {514x1 cell}
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?50813>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/