[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #50813] importdata returns cell-of-strings ins
From: |
Marc Dirix |
Subject: |
[Octave-bug-tracker] [bug #50813] importdata returns cell-of-strings instead of struct |
Date: |
Sun, 16 Apr 2017 08:57:03 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?50813>
Summary: importdata returns cell-of-strings instead of struct
Project: GNU Octave
Submitted by: dirixmjm
Submitted on: Sun 16 Apr 2017 12:57:02 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.2.1
Operating System: Microsoft Windows
_______________________________________________________
Details:
In Octave, using importdata directly on a file return a cell containing
strings for each line of the file.
However in Matlab the same command returns a struct containing separate
textdata cell and data maxtrix.
Matlab output:
AData = importdata('Plot5G.txt')
AData =
data: [65160x8 double]
textdata: {2x1 cell}
Octave:
AData = importdata('Plot5G.txt')
AData =
{
[1,1] = Theta [deg.] Phi [deg.] Abs(Grlz)[dB ] Abs(Cross)[dB ]
Phase(Cros
s)[deg.] Abs(Copol)[dB ] Phase(Copol)[deg.] Ax.Ratio[dB ]
[2,1] =
------------------------------------------------------------------------------
------------------------------------------------------------------------
[3,1] = 0.000 0.000 1.322e+01 -1.560e-01
194.336 1.302e+01 62.815 1.588e+01
[4,1] = 1.000 0.000 1.330e+01 2.045e-01
186.123 1.309e+01 54.157 1.566e+01
[5,1] = 2.000 0.000 1.338e+01 5.023e-01
178.192 1.315e+01 45.538 1.554e+01
.....
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50813>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #50813] importdata returns cell-of-strings instead of struct,
Marc Dirix <=
- [Octave-bug-tracker] [bug #50813] importdata returns cell-of-strings instead of struct, Philip Nienhuis, 2017/04/18
- [Octave-bug-tracker] [bug #50813] importdata returns cell-of-strings instead of struct, Marc Dirix, 2017/04/18
- [Octave-bug-tracker] [bug #50813] importdata returns cell-of-strings instead of struct, Mike Miller, 2017/04/18
- [Octave-bug-tracker] [bug #50813] importdata returns cell-of-strings instead of struct, Marc Dirix, 2017/04/18
- [Octave-bug-tracker] [bug #50813] importdata returns cell-of-strings instead of struct, Mike Miller, 2017/04/18
- [Octave-bug-tracker] [bug #50813] importdata returns cell-of-strings instead of struct, John W. Eaton, 2017/04/18
- [Octave-bug-tracker] [bug #50813] importdata returns cell-of-strings instead of struct, Philip Nienhuis, 2017/04/18
- [Octave-bug-tracker] [bug #50813] importdata returns cell-of-strings instead of struct, Philip Nienhuis, 2017/04/18
- [Octave-bug-tracker] [bug #50813] importdata returns cell-of-strings instead of struct, Philip Nienhuis, 2017/04/18
- [Octave-bug-tracker] [bug #50813] importdata returns cell-of-strings instead of struct, Philip Nienhuis, 2017/04/18