Filter löschen
Filter löschen

loading a log file using importdata

3 Ansichten (letzte 30 Tage)
noa
noa am 11 Aug. 2013
hi
i have a log file containing numbers as well as words.
i am using the command:
DTA = importdata('filename.log', ',');
but it is loaded as a cell array of strings instead of a struct with data and text seperated. in other log files that i have i did not have this problem
thanks
  1 Kommentar
Cedric
Cedric am 11 Aug. 2013
Bearbeitet: Cedric am 11 Aug. 2013
Please post a copy of part of the content of the log file in your question, e.g. 20-30 lines.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

the cyclist
the cyclist am 11 Aug. 2013
The exact output of importdata() is dependent on the format of the input file. This behavior is described in the "Output Arguments" section of the documentation: http://www.mathworks.com/help/matlab/ref/importdata.html. Expand the subsection "A -- Data from the file".
  1 Kommentar
noa
noa am 11 Aug. 2013
it is a simple text file. but the name is always *.log

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Data Import and Analysis finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by